Package org.tensorflow.framework
Class OpDef.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OpDef.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
org.tensorflow.framework.OpDef.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,OpDefOrBuilder
- Enclosing class:
OpDef
public static final class OpDef.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttr(Iterable<? extends OpDef.AttrDef> values) repeated .tensorflow.OpDef.AttrDef attr = 4;addAllControlOutput(Iterable<String> values) Named control outputs for this operation.addAllInputArg(Iterable<? extends OpDef.ArgDef> values) Description of the input(s).addAllOutputArg(Iterable<? extends OpDef.ArgDef> values) Description of the output(s).addAttr(int index, OpDef.AttrDef value) repeated .tensorflow.OpDef.AttrDef attr = 4;addAttr(int index, OpDef.AttrDef.Builder builderForValue) repeated .tensorflow.OpDef.AttrDef attr = 4;addAttr(OpDef.AttrDef value) repeated .tensorflow.OpDef.AttrDef attr = 4;addAttr(OpDef.AttrDef.Builder builderForValue) repeated .tensorflow.OpDef.AttrDef attr = 4;repeated .tensorflow.OpDef.AttrDef attr = 4;addAttrBuilder(int index) repeated .tensorflow.OpDef.AttrDef attr = 4;addControlOutput(String value) Named control outputs for this operation.addControlOutputBytes(com.google.protobuf.ByteString value) Named control outputs for this operation.addInputArg(int index, OpDef.ArgDef value) Description of the input(s).addInputArg(int index, OpDef.ArgDef.Builder builderForValue) Description of the input(s).addInputArg(OpDef.ArgDef value) Description of the input(s).addInputArg(OpDef.ArgDef.Builder builderForValue) Description of the input(s).Description of the input(s).addInputArgBuilder(int index) Description of the input(s).addOutputArg(int index, OpDef.ArgDef value) Description of the output(s).addOutputArg(int index, OpDef.ArgDef.Builder builderForValue) Description of the output(s).addOutputArg(OpDef.ArgDef value) Description of the output(s).addOutputArg(OpDef.ArgDef.Builder builderForValue) Description of the output(s).Description of the output(s).addOutputArgBuilder(int index) Description of the output(s).addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()By default, all inputs to an Op must be initialized Tensors.repeated .tensorflow.OpDef.AttrDef attr = 4;Named control outputs for this operation.Optional deprecation based on GraphDef versions.Additional, longer human-readable description of what the Op does.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Description of the input(s).If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type.True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)Indicates whether the op implementation uses distributed communication.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).Op names starting with an underscore are reserved for internal use.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Description of the output(s).One-line human-readable description of what the Op does.clone()booleanBy default, all inputs to an Op must be initialized Tensors.getAttr(int index) repeated .tensorflow.OpDef.AttrDef attr = 4;getAttrBuilder(int index) repeated .tensorflow.OpDef.AttrDef attr = 4;repeated .tensorflow.OpDef.AttrDef attr = 4;intrepeated .tensorflow.OpDef.AttrDef attr = 4;repeated .tensorflow.OpDef.AttrDef attr = 4;getAttrOrBuilder(int index) repeated .tensorflow.OpDef.AttrDef attr = 4;List<? extends OpDef.AttrDefOrBuilder> repeated .tensorflow.OpDef.AttrDef attr = 4;getControlOutput(int index) Named control outputs for this operation.com.google.protobuf.ByteStringgetControlOutputBytes(int index) Named control outputs for this operation.intNamed control outputs for this operation.com.google.protobuf.ProtocolStringListNamed control outputs for this operation.Optional deprecation based on GraphDef versions.Optional deprecation based on GraphDef versions.Optional deprecation based on GraphDef versions.Additional, longer human-readable description of what the Op does.com.google.protobuf.ByteStringAdditional, longer human-readable description of what the Op does.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInputArg(int index) Description of the input(s).getInputArgBuilder(int index) Description of the input(s).Description of the input(s).intDescription of the input(s).Description of the input(s).getInputArgOrBuilder(int index) Description of the input(s).List<? extends OpDef.ArgDefOrBuilder> Description of the input(s).booleanIf is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type.booleanTrue if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)booleanIndicates whether the op implementation uses distributed communication.booleanOps 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).getName()Op names starting with an underscore are reserved for internal use.com.google.protobuf.ByteStringOp names starting with an underscore are reserved for internal use.getOutputArg(int index) Description of the output(s).getOutputArgBuilder(int index) Description of the output(s).Description of the output(s).intDescription of the output(s).Description of the output(s).getOutputArgOrBuilder(int index) Description of the output(s).List<? extends OpDef.ArgDefOrBuilder> Description of the output(s).One-line human-readable description of what the Op does.com.google.protobuf.ByteStringOne-line human-readable description of what the Op does.booleanOptional deprecation based on GraphDef versions.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDeprecation(OpDeprecation value) Optional deprecation based on GraphDef versions.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final OpDef.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAttr(int index) repeated .tensorflow.OpDef.AttrDef attr = 4;removeInputArg(int index) Description of the input(s).removeOutputArg(int index) Description of the output(s).setAllowsUninitializedInput(boolean value) By default, all inputs to an Op must be initialized Tensors.setAttr(int index, OpDef.AttrDef value) repeated .tensorflow.OpDef.AttrDef attr = 4;setAttr(int index, OpDef.AttrDef.Builder builderForValue) repeated .tensorflow.OpDef.AttrDef attr = 4;setControlOutput(int index, String value) Named control outputs for this operation.setDeprecation(OpDeprecation value) Optional deprecation based on GraphDef versions.setDeprecation(OpDeprecation.Builder builderForValue) Optional deprecation based on GraphDef versions.setDescription(String value) Additional, longer human-readable description of what the Op does.setDescriptionBytes(com.google.protobuf.ByteString value) Additional, longer human-readable description of what the Op does.setInputArg(int index, OpDef.ArgDef value) Description of the input(s).setInputArg(int index, OpDef.ArgDef.Builder builderForValue) Description of the input(s).setIsAggregate(boolean value) If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type.setIsCommutative(boolean value) True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)setIsDistributedCommunication(boolean value) Indicates whether the op implementation uses distributed communication.setIsStateful(boolean value) 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).Op names starting with an underscore are reserved for internal use.setNameBytes(com.google.protobuf.ByteString value) Op names starting with an underscore are reserved for internal use.setOutputArg(int index, OpDef.ArgDef value) Description of the output(s).setOutputArg(int index, OpDef.ArgDef.Builder builderForValue) Description of the output(s).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSummary(String value) One-line human-readable description of what the Op does.setSummaryBytes(com.google.protobuf.ByteString value) One-line human-readable description of what the Op does.final OpDef.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
setRepeatedField
public OpDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
addRepeatedField
public OpDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OpDef.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
mergeFrom
public OpDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OpDef.Builder>- Throws:
IOException
-
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;- Specified by:
getNamein interfaceOpDefOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceOpDefOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getInputArgList
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;- Specified by:
getInputArgListin interfaceOpDefOrBuilder
-
getInputArgCount
public int getInputArgCount()Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;- Specified by:
getInputArgCountin interfaceOpDefOrBuilder
-
getInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;- Specified by:
getInputArgin interfaceOpDefOrBuilder
-
setInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
setInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
addInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
addInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
addInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
addInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
addAllInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
clearInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
removeInputArg
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
getInputArgBuilder
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
getInputArgOrBuilder
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;- Specified by:
getInputArgOrBuilderin interfaceOpDefOrBuilder
-
getInputArgOrBuilderList
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;- Specified by:
getInputArgOrBuilderListin interfaceOpDefOrBuilder
-
addInputArgBuilder
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
addInputArgBuilder
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
getInputArgBuilderList
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2; -
getOutputArgList
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;- Specified by:
getOutputArgListin interfaceOpDefOrBuilder
-
getOutputArgCount
public int getOutputArgCount()Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;- Specified by:
getOutputArgCountin interfaceOpDefOrBuilder
-
getOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;- Specified by:
getOutputArgin interfaceOpDefOrBuilder
-
setOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
setOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
addOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
addOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
addOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
addOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
addAllOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
clearOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
removeOutputArg
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
getOutputArgBuilder
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
getOutputArgOrBuilder
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;- Specified by:
getOutputArgOrBuilderin interfaceOpDefOrBuilder
-
getOutputArgOrBuilderList
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;- Specified by:
getOutputArgOrBuilderListin interfaceOpDefOrBuilder
-
addOutputArgBuilder
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
addOutputArgBuilder
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
getOutputArgBuilderList
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3; -
getControlOutputList
public com.google.protobuf.ProtocolStringList getControlOutputList()Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;- Specified by:
getControlOutputListin interfaceOpDefOrBuilder- Returns:
- A list containing the controlOutput.
-
getControlOutputCount
public int getControlOutputCount()Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;- Specified by:
getControlOutputCountin interfaceOpDefOrBuilder- Returns:
- The count of controlOutput.
-
getControlOutput
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;- Specified by:
getControlOutputin interfaceOpDefOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The controlOutput at the given index.
-
getControlOutputBytes
public com.google.protobuf.ByteString getControlOutputBytes(int index) Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;- Specified by:
getControlOutputBytesin interfaceOpDefOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the controlOutput at the given index.
-
setControlOutput
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;- Parameters:
index- The index to set the value at.value- The controlOutput to set.- Returns:
- This builder for chaining.
-
addControlOutput
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;- Parameters:
value- The controlOutput to add.- Returns:
- This builder for chaining.
-
addAllControlOutput
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;- Parameters:
values- The controlOutput to add.- Returns:
- This builder for chaining.
-
clearControlOutput
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;- Returns:
- This builder for chaining.
-
addControlOutputBytes
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;- Parameters:
value- The bytes of the controlOutput to add.- Returns:
- This builder for chaining.
-
getAttrList
repeated .tensorflow.OpDef.AttrDef attr = 4;- Specified by:
getAttrListin interfaceOpDefOrBuilder
-
getAttrCount
public int getAttrCount()repeated .tensorflow.OpDef.AttrDef attr = 4;- Specified by:
getAttrCountin interfaceOpDefOrBuilder
-
getAttr
repeated .tensorflow.OpDef.AttrDef attr = 4;- Specified by:
getAttrin interfaceOpDefOrBuilder
-
setAttr
repeated .tensorflow.OpDef.AttrDef attr = 4; -
setAttr
repeated .tensorflow.OpDef.AttrDef attr = 4; -
addAttr
repeated .tensorflow.OpDef.AttrDef attr = 4; -
addAttr
repeated .tensorflow.OpDef.AttrDef attr = 4; -
addAttr
repeated .tensorflow.OpDef.AttrDef attr = 4; -
addAttr
repeated .tensorflow.OpDef.AttrDef attr = 4; -
addAllAttr
repeated .tensorflow.OpDef.AttrDef attr = 4; -
clearAttr
repeated .tensorflow.OpDef.AttrDef attr = 4; -
removeAttr
repeated .tensorflow.OpDef.AttrDef attr = 4; -
getAttrBuilder
repeated .tensorflow.OpDef.AttrDef attr = 4; -
getAttrOrBuilder
repeated .tensorflow.OpDef.AttrDef attr = 4;- Specified by:
getAttrOrBuilderin interfaceOpDefOrBuilder
-
getAttrOrBuilderList
repeated .tensorflow.OpDef.AttrDef attr = 4;- Specified by:
getAttrOrBuilderListin interfaceOpDefOrBuilder
-
addAttrBuilder
repeated .tensorflow.OpDef.AttrDef attr = 4; -
addAttrBuilder
repeated .tensorflow.OpDef.AttrDef attr = 4; -
getAttrBuilderList
repeated .tensorflow.OpDef.AttrDef attr = 4; -
hasDeprecation
public boolean hasDeprecation()Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;- Specified by:
hasDeprecationin interfaceOpDefOrBuilder- Returns:
- Whether the deprecation field is set.
-
getDeprecation
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;- Specified by:
getDeprecationin interfaceOpDefOrBuilder- Returns:
- The deprecation.
-
setDeprecation
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8; -
setDeprecation
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8; -
mergeDeprecation
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8; -
clearDeprecation
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8; -
getDeprecationBuilder
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8; -
getDeprecationOrBuilder
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;- Specified by:
getDeprecationOrBuilderin interfaceOpDefOrBuilder
-
getSummary
One-line human-readable description of what the Op does.
string summary = 5;- Specified by:
getSummaryin interfaceOpDefOrBuilder- Returns:
- The summary.
-
getSummaryBytes
public com.google.protobuf.ByteString getSummaryBytes()One-line human-readable description of what the Op does.
string summary = 5;- Specified by:
getSummaryBytesin interfaceOpDefOrBuilder- Returns:
- The bytes for summary.
-
setSummary
One-line human-readable description of what the Op does.
string summary = 5;- Parameters:
value- The summary to set.- Returns:
- This builder for chaining.
-
clearSummary
One-line human-readable description of what the Op does.
string summary = 5;- Returns:
- This builder for chaining.
-
setSummaryBytes
One-line human-readable description of what the Op does.
string summary = 5;- Parameters:
value- The bytes for summary to set.- Returns:
- This builder for chaining.
-
getDescription
Additional, longer human-readable description of what the Op does.
string description = 6;- Specified by:
getDescriptionin interfaceOpDefOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Additional, longer human-readable description of what the Op does.
string description = 6;- Specified by:
getDescriptionBytesin interfaceOpDefOrBuilder- Returns:
- The bytes for description.
-
setDescription
Additional, longer human-readable description of what the Op does.
string description = 6;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Additional, longer human-readable description of what the Op does.
string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Additional, longer human-readable description of what the Op does.
string description = 6;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getIsCommutative
public boolean getIsCommutative()True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)bool is_commutative = 18;- Specified by:
getIsCommutativein interfaceOpDefOrBuilder- Returns:
- The isCommutative.
-
setIsCommutative
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)bool is_commutative = 18;- Parameters:
value- The isCommutative to set.- Returns:
- This builder for chaining.
-
clearIsCommutative
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)bool is_commutative = 18;- Returns:
- This builder for chaining.
-
getIsAggregate
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;- Specified by:
getIsAggregatein interfaceOpDefOrBuilder- Returns:
- The isAggregate.
-
setIsAggregate
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;- Parameters:
value- The isAggregate to set.- Returns:
- This builder for chaining.
-
clearIsAggregate
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;- Returns:
- This builder for chaining.
-
getIsStateful
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;- Specified by:
getIsStatefulin interfaceOpDefOrBuilder- Returns:
- The isStateful.
-
setIsStateful
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;- Parameters:
value- The isStateful to set.- Returns:
- This builder for chaining.
-
clearIsStateful
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;- Returns:
- This builder for chaining.
-
getAllowsUninitializedInput
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;- Specified by:
getAllowsUninitializedInputin interfaceOpDefOrBuilder- Returns:
- The allowsUninitializedInput.
-
setAllowsUninitializedInput
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;- Parameters:
value- The allowsUninitializedInput to set.- Returns:
- This builder for chaining.
-
clearAllowsUninitializedInput
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;- Returns:
- This builder for chaining.
-
getIsDistributedCommunication
public boolean getIsDistributedCommunication()Indicates whether the op implementation uses distributed communication. If True, the op is allowed to return errors for network disconnection and trigger TF network failure handling logics.
bool is_distributed_communication = 21;- Specified by:
getIsDistributedCommunicationin interfaceOpDefOrBuilder- Returns:
- The isDistributedCommunication.
-
setIsDistributedCommunication
Indicates whether the op implementation uses distributed communication. If True, the op is allowed to return errors for network disconnection and trigger TF network failure handling logics.
bool is_distributed_communication = 21;- Parameters:
value- The isDistributedCommunication to set.- Returns:
- This builder for chaining.
-
clearIsDistributedCommunication
Indicates whether the op implementation uses distributed communication. If True, the op is allowed to return errors for network disconnection and trigger TF network failure handling logics.
bool is_distributed_communication = 21;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-