public final class OpDef extends com.google.protobuf.GeneratedMessageV3 implements OpDefOrBuilder
Defines an operation. A NodeDef in a GraphDef specifies an Op by using the "op" field which should match the name of a OpDef. LINT.IfChangeProtobuf type
tensorflow.OpDef| Modifier and Type | Class and Description |
|---|---|
static class |
OpDef.ArgDef
For describing inputs and outputs.
|
static interface |
OpDef.ArgDefOrBuilder |
static class |
OpDef.AttrDef
Description of the graph-construction-time configuration of this
Op.
|
static interface |
OpDef.AttrDefOrBuilder |
static class |
OpDef.Builder
Defines an operation.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOWS_UNINITIALIZED_INPUT_FIELD_NUMBER |
static int |
ATTR_FIELD_NUMBER |
static int |
DEPRECATION_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
INPUT_ARG_FIELD_NUMBER |
static int |
IS_AGGREGATE_FIELD_NUMBER |
static int |
IS_COMMUTATIVE_FIELD_NUMBER |
static int |
IS_STATEFUL_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
OUTPUT_ARG_FIELD_NUMBER |
static int |
SUMMARY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getAllowsUninitializedInput()
By default, all inputs to an Op must be initialized Tensors.
|
OpDef.AttrDef |
getAttr(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4; |
int |
getAttrCount()
repeated .tensorflow.OpDef.AttrDef attr = 4; |
java.util.List<OpDef.AttrDef> |
getAttrList()
repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.AttrDefOrBuilder |
getAttrOrBuilder(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4; |
java.util.List<? extends OpDef.AttrDefOrBuilder> |
getAttrOrBuilderList()
repeated .tensorflow.OpDef.AttrDef attr = 4; |
static OpDef |
getDefaultInstance() |
OpDef |
getDefaultInstanceForType() |
OpDeprecation |
getDeprecation()
Optional deprecation based on GraphDef versions.
|
OpDeprecationOrBuilder |
getDeprecationOrBuilder()
Optional deprecation based on GraphDef versions.
|
java.lang.String |
getDescription()
Additional, longer human-readable description of what the Op does.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Additional, longer human-readable description of what the Op does.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
OpDef.ArgDef |
getInputArg(int index)
Description of the input(s).
|
int |
getInputArgCount()
Description of the input(s).
|
java.util.List<OpDef.ArgDef> |
getInputArgList()
Description of the input(s).
|
OpDef.ArgDefOrBuilder |
getInputArgOrBuilder(int index)
Description of the input(s).
|
java.util.List<? extends OpDef.ArgDefOrBuilder> |
getInputArgOrBuilderList()
Description of the input(s).
|
boolean |
getIsAggregate()
If is_aggregate is true, then this operation accepts N >= 2
inputs and produces 1 output all of the same type.
|
boolean |
getIsCommutative()
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
|
boolean |
getIsStateful()
Ops are marked as stateful if their behavior depends on some state beyond
their input tensors (e.g.
|
java.lang.String |
getName()
Op names starting with an underscore are reserved for internal use.
|
com.google.protobuf.ByteString |
getNameBytes()
Op names starting with an underscore are reserved for internal use.
|
OpDef.ArgDef |
getOutputArg(int index)
Description of the output(s).
|
int |
getOutputArgCount()
Description of the output(s).
|
java.util.List<OpDef.ArgDef> |
getOutputArgList()
Description of the output(s).
|
OpDef.ArgDefOrBuilder |
getOutputArgOrBuilder(int index)
Description of the output(s).
|
java.util.List<? extends OpDef.ArgDefOrBuilder> |
getOutputArgOrBuilderList()
Description of the output(s).
|
com.google.protobuf.Parser<OpDef> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getSummary()
One-line human-readable description of what the Op does.
|
com.google.protobuf.ByteString |
getSummaryBytes()
One-line human-readable description of what the Op does.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDeprecation()
Optional deprecation based on GraphDef versions.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OpDef.Builder |
newBuilder() |
static OpDef.Builder |
newBuilder(OpDef prototype) |
OpDef.Builder |
newBuilderForType() |
protected OpDef.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OpDef |
parseDelimitedFrom(java.io.InputStream input) |
static OpDef |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(byte[] data) |
static OpDef |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(java.nio.ByteBuffer data) |
static OpDef |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(com.google.protobuf.ByteString data) |
static OpDef |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OpDef |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(java.io.InputStream input) |
static OpDef |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OpDef> |
parser() |
OpDef.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int INPUT_ARG_FIELD_NUMBER
public static final int OUTPUT_ARG_FIELD_NUMBER
public static final int ATTR_FIELD_NUMBER
public static final int DEPRECATION_FIELD_NUMBER
public static final int SUMMARY_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int IS_COMMUTATIVE_FIELD_NUMBER
public static final int IS_AGGREGATE_FIELD_NUMBER
public static final int IS_STATEFUL_FIELD_NUMBER
public static final int ALLOWS_UNINITIALIZED_INPUT_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getName()
Op names starting with an underscore are reserved for internal use. Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
string name = 1;getName in interface OpDefOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Op names starting with an underscore are reserved for internal use. Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
string name = 1;getNameBytes in interface OpDefOrBuilderpublic java.util.List<OpDef.ArgDef> getInputArgList()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;getInputArgList in interface OpDefOrBuilderpublic java.util.List<? extends OpDef.ArgDefOrBuilder> getInputArgOrBuilderList()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;getInputArgOrBuilderList in interface OpDefOrBuilderpublic int getInputArgCount()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;getInputArgCount in interface OpDefOrBuilderpublic OpDef.ArgDef getInputArg(int index)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;getInputArg in interface OpDefOrBuilderpublic OpDef.ArgDefOrBuilder getInputArgOrBuilder(int index)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;getInputArgOrBuilder in interface OpDefOrBuilderpublic java.util.List<OpDef.ArgDef> getOutputArgList()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;getOutputArgList in interface OpDefOrBuilderpublic java.util.List<? extends OpDef.ArgDefOrBuilder> getOutputArgOrBuilderList()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;getOutputArgOrBuilderList in interface OpDefOrBuilderpublic int getOutputArgCount()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;getOutputArgCount in interface OpDefOrBuilderpublic OpDef.ArgDef getOutputArg(int index)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;getOutputArg in interface OpDefOrBuilderpublic OpDef.ArgDefOrBuilder getOutputArgOrBuilder(int index)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;getOutputArgOrBuilder in interface OpDefOrBuilderpublic java.util.List<OpDef.AttrDef> getAttrList()
repeated .tensorflow.OpDef.AttrDef attr = 4;getAttrList in interface OpDefOrBuilderpublic java.util.List<? extends OpDef.AttrDefOrBuilder> getAttrOrBuilderList()
repeated .tensorflow.OpDef.AttrDef attr = 4;getAttrOrBuilderList in interface OpDefOrBuilderpublic int getAttrCount()
repeated .tensorflow.OpDef.AttrDef attr = 4;getAttrCount in interface OpDefOrBuilderpublic OpDef.AttrDef getAttr(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;getAttr in interface OpDefOrBuilderpublic OpDef.AttrDefOrBuilder getAttrOrBuilder(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;getAttrOrBuilder in interface OpDefOrBuilderpublic boolean hasDeprecation()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;hasDeprecation in interface OpDefOrBuilderpublic OpDeprecation getDeprecation()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;getDeprecation in interface OpDefOrBuilderpublic OpDeprecationOrBuilder getDeprecationOrBuilder()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;getDeprecationOrBuilder in interface OpDefOrBuilderpublic java.lang.String getSummary()
One-line human-readable description of what the Op does.
string summary = 5;getSummary in interface OpDefOrBuilderpublic com.google.protobuf.ByteString getSummaryBytes()
One-line human-readable description of what the Op does.
string summary = 5;getSummaryBytes in interface OpDefOrBuilderpublic java.lang.String getDescription()
Additional, longer human-readable description of what the Op does.
string description = 6;getDescription in interface OpDefOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Additional, longer human-readable description of what the Op does.
string description = 6;getDescriptionBytes in interface OpDefOrBuilderpublic boolean getIsCommutative()
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
bool is_commutative = 18;getIsCommutative in interface OpDefOrBuilderpublic boolean getIsAggregate()
If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type. Should be associative and commutative, and produce output with the same shape as the input. The optimizer may replace an aggregate op taking input from multiple devices with a tree of aggregate ops that aggregate locally within each device (and possibly within groups of nearby devices) before communicating. TODO(josh11b): Implement that optimization.
bool is_aggregate = 16;getIsAggregate in interface OpDefOrBuilderpublic boolean getIsStateful()
Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g. variable reading op) or if they have a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops must always produce the same output for the same input and have no side-effects. By default Ops may be moved between devices. Stateful ops should either not be moved, or should only be moved if that state can also be moved (e.g. via some sort of save / restore). Stateful ops are guaranteed to never be optimized away by Common Subexpression Elimination (CSE).
bool is_stateful = 17;getIsStateful in interface OpDefOrBuilderpublic boolean getAllowsUninitializedInput()
By default, all inputs to an Op must be initialized Tensors. Ops that may initialize tensors for the first time should set this field to true, to allow the Op to take an uninitialized Tensor as input.
bool allows_uninitialized_input = 19;getAllowsUninitializedInput in interface OpDefOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OpDef parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpDef parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static OpDef parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static OpDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static OpDef parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static OpDef parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static OpDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic OpDef.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OpDef.Builder newBuilder()
public static OpDef.Builder newBuilder(OpDef prototype)
public OpDef.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OpDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OpDef getDefaultInstance()
public static com.google.protobuf.Parser<OpDef> parser()
public com.google.protobuf.Parser<OpDef> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OpDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder