public final class OpDef extends org.nd4j.shade.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.
|
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.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(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; |
List<OpDef.AttrDef> |
getAttrList()
repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.AttrDefOrBuilder |
getAttrOrBuilder(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4; |
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.
|
String |
getDescription()
Additional, longer human-readable description of what the Op does.
|
org.nd4j.shade.protobuf.ByteString |
getDescriptionBytes()
Additional, longer human-readable description of what the Op does.
|
static org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptor() |
OpDef.ArgDef |
getInputArg(int index)
Description of the input(s).
|
int |
getInputArgCount()
Description of the input(s).
|
List<OpDef.ArgDef> |
getInputArgList()
Description of the input(s).
|
OpDef.ArgDefOrBuilder |
getInputArgOrBuilder(int index)
Description of the input(s).
|
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.
|
String |
getName()
Op names starting with an underscore are reserved for internal use.
|
org.nd4j.shade.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).
|
List<OpDef.ArgDef> |
getOutputArgList()
Description of the output(s).
|
OpDef.ArgDefOrBuilder |
getOutputArgOrBuilder(int index)
Description of the output(s).
|
List<? extends OpDef.ArgDefOrBuilder> |
getOutputArgOrBuilderList()
Description of the output(s).
|
org.nd4j.shade.protobuf.Parser<OpDef> |
getParserForType() |
int |
getSerializedSize() |
String |
getSummary()
One-line human-readable description of what the Op does.
|
org.nd4j.shade.protobuf.ByteString |
getSummaryBytes()
One-line human-readable description of what the Op does.
|
org.nd4j.shade.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDeprecation()
Optional deprecation based on GraphDef versions.
|
int |
hashCode() |
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OpDef.Builder |
newBuilder() |
static OpDef.Builder |
newBuilder(OpDef prototype) |
OpDef.Builder |
newBuilderForType() |
protected OpDef.Builder |
newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) |
static OpDef |
parseDelimitedFrom(InputStream input) |
static OpDef |
parseDelimitedFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(byte[] data) |
static OpDef |
parseFrom(byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(ByteBuffer data) |
static OpDef |
parseFrom(ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(org.nd4j.shade.protobuf.ByteString data) |
static OpDef |
parseFrom(org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) |
static OpDef |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpDef |
parseFrom(InputStream input) |
static OpDef |
parseFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static org.nd4j.shade.protobuf.Parser<OpDef> |
parser() |
OpDef.Builder |
toBuilder() |
void |
writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, getSerializedSizeInternal, isInitializedInternal, makeImmutableInternal, mergeFromInternal, toByteArray, toByteString, writeDelimitedTo, writeTo, writeToInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public 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 OpDefOrBuilder
public org.nd4j.shade.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 OpDefOrBuilder
public List<OpDef.ArgDef> getInputArgList()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
getInputArgList
in interface OpDefOrBuilder
public List<? extends OpDef.ArgDefOrBuilder> getInputArgOrBuilderList()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
getInputArgOrBuilderList
in interface OpDefOrBuilder
public int getInputArgCount()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
getInputArgCount
in interface OpDefOrBuilder
public OpDef.ArgDef getInputArg(int index)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
getInputArg
in interface OpDefOrBuilder
public OpDef.ArgDefOrBuilder getInputArgOrBuilder(int index)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
getInputArgOrBuilder
in interface OpDefOrBuilder
public List<OpDef.ArgDef> getOutputArgList()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
getOutputArgList
in interface OpDefOrBuilder
public List<? extends OpDef.ArgDefOrBuilder> getOutputArgOrBuilderList()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
getOutputArgOrBuilderList
in interface OpDefOrBuilder
public int getOutputArgCount()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
getOutputArgCount
in interface OpDefOrBuilder
public OpDef.ArgDef getOutputArg(int index)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
getOutputArg
in interface OpDefOrBuilder
public OpDef.ArgDefOrBuilder getOutputArgOrBuilder(int index)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
getOutputArgOrBuilder
in interface OpDefOrBuilder
public List<OpDef.AttrDef> getAttrList()
repeated .tensorflow.OpDef.AttrDef attr = 4;
getAttrList
in interface OpDefOrBuilder
public List<? extends OpDef.AttrDefOrBuilder> getAttrOrBuilderList()
repeated .tensorflow.OpDef.AttrDef attr = 4;
getAttrOrBuilderList
in interface OpDefOrBuilder
public int getAttrCount()
repeated .tensorflow.OpDef.AttrDef attr = 4;
getAttrCount
in interface OpDefOrBuilder
public OpDef.AttrDef getAttr(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
getAttr
in interface OpDefOrBuilder
public OpDef.AttrDefOrBuilder getAttrOrBuilder(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
getAttrOrBuilder
in interface OpDefOrBuilder
public boolean hasDeprecation()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
hasDeprecation
in interface OpDefOrBuilder
public OpDeprecation getDeprecation()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
getDeprecation
in interface OpDefOrBuilder
public OpDeprecationOrBuilder getDeprecationOrBuilder()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
getDeprecationOrBuilder
in interface OpDefOrBuilder
public String getSummary()
One-line human-readable description of what the Op does.
string summary = 5;
getSummary
in interface OpDefOrBuilder
public org.nd4j.shade.protobuf.ByteString getSummaryBytes()
One-line human-readable description of what the Op does.
string summary = 5;
getSummaryBytes
in interface OpDefOrBuilder
public String getDescription()
Additional, longer human-readable description of what the Op does.
string description = 6;
getDescription
in interface OpDefOrBuilder
public org.nd4j.shade.protobuf.ByteString getDescriptionBytes()
Additional, longer human-readable description of what the Op does.
string description = 6;
getDescriptionBytes
in interface OpDefOrBuilder
public boolean getIsCommutative()
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
bool is_commutative = 18;
getIsCommutative
in interface OpDefOrBuilder
public 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 OpDefOrBuilder
public 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 OpDefOrBuilder
public 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 OpDefOrBuilder
public final boolean isInitialized()
isInitialized
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
isInitialized
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface org.nd4j.shade.protobuf.MessageLite
writeTo
in class org.nd4j.shade.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface org.nd4j.shade.protobuf.MessageLite
getSerializedSize
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface org.nd4j.shade.protobuf.Message
equals
in class org.nd4j.shade.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface org.nd4j.shade.protobuf.Message
hashCode
in class org.nd4j.shade.protobuf.AbstractMessage
public static OpDef parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OpDef parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OpDef parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OpDef parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OpDef parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OpDef parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferException
public static OpDef parseFrom(InputStream input) throws IOException
IOException
public static OpDef parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OpDef parseDelimitedFrom(InputStream input) throws IOException
IOException
public static OpDef parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OpDef parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
IOException
public static OpDef parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public OpDef.Builder newBuilderForType()
newBuilderForType
in interface org.nd4j.shade.protobuf.Message
newBuilderForType
in interface org.nd4j.shade.protobuf.MessageLite
public static OpDef.Builder newBuilder()
public static OpDef.Builder newBuilder(OpDef prototype)
public OpDef.Builder toBuilder()
toBuilder
in interface org.nd4j.shade.protobuf.Message
toBuilder
in interface org.nd4j.shade.protobuf.MessageLite
protected OpDef.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public static OpDef getDefaultInstance()
public static org.nd4j.shade.protobuf.Parser<OpDef> parser()
public org.nd4j.shade.protobuf.Parser<OpDef> getParserForType()
getParserForType
in interface org.nd4j.shade.protobuf.Message
getParserForType
in interface org.nd4j.shade.protobuf.MessageLite
getParserForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3
public OpDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
Copyright © 2020. All rights reserved.