Package org.tensorflow.framework
Class OpDef.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
- org.tensorflow.framework.OpDef.Builder
-
- All Implemented Interfaces:
Cloneable,org.nd4j.shade.protobuf.Message.Builder,org.nd4j.shade.protobuf.MessageLite.Builder,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,OpDefOrBuilder
- Enclosing class:
- OpDef
public static final class OpDef.Builder extends org.nd4j.shade.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.IfChange
Protobuf typetensorflow.OpDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OpDef.BuilderaddAllAttr(Iterable<? extends OpDef.AttrDef> values)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.BuilderaddAllInputArg(Iterable<? extends OpDef.ArgDef> values)Description of the input(s).OpDef.BuilderaddAllOutputArg(Iterable<? extends OpDef.ArgDef> values)Description of the output(s).OpDef.BuilderaddAttr(int index, OpDef.AttrDef value)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.BuilderaddAttr(int index, OpDef.AttrDef.Builder builderForValue)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.BuilderaddAttr(OpDef.AttrDef value)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.BuilderaddAttr(OpDef.AttrDef.Builder builderForValue)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.AttrDef.BuilderaddAttrBuilder()repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.AttrDef.BuilderaddAttrBuilder(int index)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.BuilderaddInputArg(int index, OpDef.ArgDef value)Description of the input(s).OpDef.BuilderaddInputArg(int index, OpDef.ArgDef.Builder builderForValue)Description of the input(s).OpDef.BuilderaddInputArg(OpDef.ArgDef value)Description of the input(s).OpDef.BuilderaddInputArg(OpDef.ArgDef.Builder builderForValue)Description of the input(s).OpDef.ArgDef.BuilderaddInputArgBuilder()Description of the input(s).OpDef.ArgDef.BuilderaddInputArgBuilder(int index)Description of the input(s).OpDef.BuilderaddOutputArg(int index, OpDef.ArgDef value)Description of the output(s).OpDef.BuilderaddOutputArg(int index, OpDef.ArgDef.Builder builderForValue)Description of the output(s).OpDef.BuilderaddOutputArg(OpDef.ArgDef value)Description of the output(s).OpDef.BuilderaddOutputArg(OpDef.ArgDef.Builder builderForValue)Description of the output(s).OpDef.ArgDef.BuilderaddOutputArgBuilder()Description of the output(s).OpDef.ArgDef.BuilderaddOutputArgBuilder(int index)Description of the output(s).OpDef.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)OpDefbuild()OpDefbuildPartial()OpDef.Builderclear()OpDef.BuilderclearAllowsUninitializedInput()By default, all inputs to an Op must be initialized Tensors.OpDef.BuilderclearAttr()repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.BuilderclearDeprecation()Optional deprecation based on GraphDef versions.OpDef.BuilderclearDescription()Additional, longer human-readable description of what the Op does.OpDef.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)OpDef.BuilderclearInputArg()Description of the input(s).OpDef.BuilderclearIsAggregate()If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type.OpDef.BuilderclearIsCommutative()True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)OpDef.BuilderclearIsStateful()Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g.OpDef.BuilderclearName()Op names starting with an underscore are reserved for internal use.OpDef.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)OpDef.BuilderclearOutputArg()Description of the output(s).OpDef.BuilderclearSummary()One-line human-readable description of what the Op does.OpDef.Builderclone()booleangetAllowsUninitializedInput()By default, all inputs to an Op must be initialized Tensors.OpDef.AttrDefgetAttr(int index)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.AttrDef.BuildergetAttrBuilder(int index)repeated .tensorflow.OpDef.AttrDef attr = 4;List<OpDef.AttrDef.Builder>getAttrBuilderList()repeated .tensorflow.OpDef.AttrDef attr = 4;intgetAttrCount()repeated .tensorflow.OpDef.AttrDef attr = 4;List<OpDef.AttrDef>getAttrList()repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.AttrDefOrBuildergetAttrOrBuilder(int index)repeated .tensorflow.OpDef.AttrDef attr = 4;List<? extends OpDef.AttrDefOrBuilder>getAttrOrBuilderList()repeated .tensorflow.OpDef.AttrDef attr = 4;OpDefgetDefaultInstanceForType()OpDeprecationgetDeprecation()Optional deprecation based on GraphDef versions.OpDeprecation.BuildergetDeprecationBuilder()Optional deprecation based on GraphDef versions.OpDeprecationOrBuildergetDeprecationOrBuilder()Optional deprecation based on GraphDef versions.StringgetDescription()Additional, longer human-readable description of what the Op does.org.nd4j.shade.protobuf.ByteStringgetDescriptionBytes()Additional, longer human-readable description of what the Op does.static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()OpDef.ArgDefgetInputArg(int index)Description of the input(s).OpDef.ArgDef.BuildergetInputArgBuilder(int index)Description of the input(s).List<OpDef.ArgDef.Builder>getInputArgBuilderList()Description of the input(s).intgetInputArgCount()Description of the input(s).List<OpDef.ArgDef>getInputArgList()Description of the input(s).OpDef.ArgDefOrBuildergetInputArgOrBuilder(int index)Description of the input(s).List<? extends OpDef.ArgDefOrBuilder>getInputArgOrBuilderList()Description of the input(s).booleangetIsAggregate()If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type.booleangetIsCommutative()True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)booleangetIsStateful()Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g.StringgetName()Op names starting with an underscore are reserved for internal use.org.nd4j.shade.protobuf.ByteStringgetNameBytes()Op names starting with an underscore are reserved for internal use.OpDef.ArgDefgetOutputArg(int index)Description of the output(s).OpDef.ArgDef.BuildergetOutputArgBuilder(int index)Description of the output(s).List<OpDef.ArgDef.Builder>getOutputArgBuilderList()Description of the output(s).intgetOutputArgCount()Description of the output(s).List<OpDef.ArgDef>getOutputArgList()Description of the output(s).OpDef.ArgDefOrBuildergetOutputArgOrBuilder(int index)Description of the output(s).List<? extends OpDef.ArgDefOrBuilder>getOutputArgOrBuilderList()Description of the output(s).StringgetSummary()One-line human-readable description of what the Op does.org.nd4j.shade.protobuf.ByteStringgetSummaryBytes()One-line human-readable description of what the Op does.booleanhasDeprecation()Optional deprecation based on GraphDef versions.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OpDef.BuildermergeDeprecation(OpDeprecation value)Optional deprecation based on GraphDef versions.OpDef.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)OpDef.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)OpDef.BuildermergeFrom(OpDef other)OpDef.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)OpDef.BuilderremoveAttr(int index)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.BuilderremoveInputArg(int index)Description of the input(s).OpDef.BuilderremoveOutputArg(int index)Description of the output(s).OpDef.BuildersetAllowsUninitializedInput(boolean value)By default, all inputs to an Op must be initialized Tensors.OpDef.BuildersetAttr(int index, OpDef.AttrDef value)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.BuildersetAttr(int index, OpDef.AttrDef.Builder builderForValue)repeated .tensorflow.OpDef.AttrDef attr = 4;OpDef.BuildersetDeprecation(OpDeprecation value)Optional deprecation based on GraphDef versions.OpDef.BuildersetDeprecation(OpDeprecation.Builder builderForValue)Optional deprecation based on GraphDef versions.OpDef.BuildersetDescription(String value)Additional, longer human-readable description of what the Op does.OpDef.BuildersetDescriptionBytes(org.nd4j.shade.protobuf.ByteString value)Additional, longer human-readable description of what the Op does.OpDef.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)OpDef.BuildersetInputArg(int index, OpDef.ArgDef value)Description of the input(s).OpDef.BuildersetInputArg(int index, OpDef.ArgDef.Builder builderForValue)Description of the input(s).OpDef.BuildersetIsAggregate(boolean value)If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type.OpDef.BuildersetIsCommutative(boolean value)True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)OpDef.BuildersetIsStateful(boolean value)Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g.OpDef.BuildersetName(String value)Op names starting with an underscore are reserved for internal use.OpDef.BuildersetNameBytes(org.nd4j.shade.protobuf.ByteString value)Op names starting with an underscore are reserved for internal use.OpDef.BuildersetOutputArg(int index, OpDef.ArgDef value)Description of the output(s).OpDef.BuildersetOutputArg(int index, OpDef.ArgDef.Builder builderForValue)Description of the output(s).OpDef.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OpDef.BuildersetSummary(String value)One-line human-readable description of what the Op does.OpDef.BuildersetSummaryBytes(org.nd4j.shade.protobuf.ByteString value)One-line human-readable description of what the Op does.OpDef.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
clear
public OpDef.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
getDefaultInstanceForType
public OpDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public OpDef build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public OpDef buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public OpDef.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
setField
public OpDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
clearField
public OpDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
clearOneof
public OpDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
setRepeatedField
public OpDef.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
addRepeatedField
public OpDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
mergeFrom
public OpDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<OpDef.Builder>
-
mergeFrom
public OpDef.Builder mergeFrom(OpDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
mergeFrom
public OpDef.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<OpDef.Builder>- Throws:
IOException
-
getName
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;- Specified by:
getNamein interfaceOpDefOrBuilder- Returns:
- The name.
-
getNameBytes
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;- Specified by:
getNameBytesin interfaceOpDefOrBuilder- Returns:
- The bytes for name.
-
setName
public OpDef.Builder setName(String value)
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
public OpDef.Builder 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
public OpDef.Builder setNameBytes(org.nd4j.shade.protobuf.ByteString value)
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
public List<OpDef.ArgDef> 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
public OpDef.ArgDef getInputArg(int index)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;- Specified by:
getInputArgin interfaceOpDefOrBuilder
-
setInputArg
public OpDef.Builder setInputArg(int index, OpDef.ArgDef value)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
setInputArg
public OpDef.Builder setInputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
addInputArg
public OpDef.Builder addInputArg(OpDef.ArgDef value)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
addInputArg
public OpDef.Builder addInputArg(int index, OpDef.ArgDef value)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
addInputArg
public OpDef.Builder addInputArg(OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
addInputArg
public OpDef.Builder addInputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
addAllInputArg
public OpDef.Builder addAllInputArg(Iterable<? extends OpDef.ArgDef> values)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
clearInputArg
public OpDef.Builder clearInputArg()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
removeInputArg
public OpDef.Builder removeInputArg(int index)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
getInputArgBuilder
public OpDef.ArgDef.Builder getInputArgBuilder(int index)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
getInputArgOrBuilder
public OpDef.ArgDefOrBuilder getInputArgOrBuilder(int index)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;- Specified by:
getInputArgOrBuilderin interfaceOpDefOrBuilder
-
getInputArgOrBuilderList
public List<? extends OpDef.ArgDefOrBuilder> getInputArgOrBuilderList()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;- Specified by:
getInputArgOrBuilderListin interfaceOpDefOrBuilder
-
addInputArgBuilder
public OpDef.ArgDef.Builder addInputArgBuilder()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
addInputArgBuilder
public OpDef.ArgDef.Builder addInputArgBuilder(int index)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
getInputArgBuilderList
public List<OpDef.ArgDef.Builder> getInputArgBuilderList()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
-
getOutputArgList
public List<OpDef.ArgDef> 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
public OpDef.ArgDef getOutputArg(int index)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;- Specified by:
getOutputArgin interfaceOpDefOrBuilder
-
setOutputArg
public OpDef.Builder setOutputArg(int index, OpDef.ArgDef value)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
setOutputArg
public OpDef.Builder setOutputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
addOutputArg
public OpDef.Builder addOutputArg(OpDef.ArgDef value)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
addOutputArg
public OpDef.Builder addOutputArg(int index, OpDef.ArgDef value)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
addOutputArg
public OpDef.Builder addOutputArg(OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
addOutputArg
public OpDef.Builder addOutputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
addAllOutputArg
public OpDef.Builder addAllOutputArg(Iterable<? extends OpDef.ArgDef> values)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
clearOutputArg
public OpDef.Builder clearOutputArg()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
removeOutputArg
public OpDef.Builder removeOutputArg(int index)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
getOutputArgBuilder
public OpDef.ArgDef.Builder getOutputArgBuilder(int index)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
getOutputArgOrBuilder
public OpDef.ArgDefOrBuilder getOutputArgOrBuilder(int index)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;- Specified by:
getOutputArgOrBuilderin interfaceOpDefOrBuilder
-
getOutputArgOrBuilderList
public List<? extends OpDef.ArgDefOrBuilder> getOutputArgOrBuilderList()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;- Specified by:
getOutputArgOrBuilderListin interfaceOpDefOrBuilder
-
addOutputArgBuilder
public OpDef.ArgDef.Builder addOutputArgBuilder()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
addOutputArgBuilder
public OpDef.ArgDef.Builder addOutputArgBuilder(int index)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
getOutputArgBuilderList
public List<OpDef.ArgDef.Builder> getOutputArgBuilderList()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
-
getAttrList
public List<OpDef.AttrDef> 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
public OpDef.AttrDef getAttr(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;- Specified by:
getAttrin interfaceOpDefOrBuilder
-
setAttr
public OpDef.Builder setAttr(int index, OpDef.AttrDef value)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
setAttr
public OpDef.Builder setAttr(int index, OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
addAttr
public OpDef.Builder addAttr(OpDef.AttrDef value)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
addAttr
public OpDef.Builder addAttr(int index, OpDef.AttrDef value)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
addAttr
public OpDef.Builder addAttr(OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
addAttr
public OpDef.Builder addAttr(int index, OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
addAllAttr
public OpDef.Builder addAllAttr(Iterable<? extends OpDef.AttrDef> values)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
clearAttr
public OpDef.Builder clearAttr()
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
removeAttr
public OpDef.Builder removeAttr(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
getAttrBuilder
public OpDef.AttrDef.Builder getAttrBuilder(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
getAttrOrBuilder
public OpDef.AttrDefOrBuilder getAttrOrBuilder(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;- Specified by:
getAttrOrBuilderin interfaceOpDefOrBuilder
-
getAttrOrBuilderList
public List<? extends OpDef.AttrDefOrBuilder> getAttrOrBuilderList()
repeated .tensorflow.OpDef.AttrDef attr = 4;- Specified by:
getAttrOrBuilderListin interfaceOpDefOrBuilder
-
addAttrBuilder
public OpDef.AttrDef.Builder addAttrBuilder()
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
addAttrBuilder
public OpDef.AttrDef.Builder addAttrBuilder(int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
-
getAttrBuilderList
public List<OpDef.AttrDef.Builder> 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
public OpDeprecation getDeprecation()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;- Specified by:
getDeprecationin interfaceOpDefOrBuilder- Returns:
- The deprecation.
-
setDeprecation
public OpDef.Builder setDeprecation(OpDeprecation value)
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
-
setDeprecation
public OpDef.Builder setDeprecation(OpDeprecation.Builder builderForValue)
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
-
mergeDeprecation
public OpDef.Builder mergeDeprecation(OpDeprecation value)
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
-
clearDeprecation
public OpDef.Builder clearDeprecation()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
-
getDeprecationBuilder
public OpDeprecation.Builder getDeprecationBuilder()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
-
getDeprecationOrBuilder
public OpDeprecationOrBuilder getDeprecationOrBuilder()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;- Specified by:
getDeprecationOrBuilderin interfaceOpDefOrBuilder
-
getSummary
public String getSummary()
One-line human-readable description of what the Op does.
string summary = 5;- Specified by:
getSummaryin interfaceOpDefOrBuilder- Returns:
- The summary.
-
getSummaryBytes
public org.nd4j.shade.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
public OpDef.Builder setSummary(String value)
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
public OpDef.Builder clearSummary()
One-line human-readable description of what the Op does.
string summary = 5;- Returns:
- This builder for chaining.
-
setSummaryBytes
public OpDef.Builder setSummaryBytes(org.nd4j.shade.protobuf.ByteString value)
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
public String getDescription()
Additional, longer human-readable description of what the Op does.
string description = 6;- Specified by:
getDescriptionin interfaceOpDefOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public org.nd4j.shade.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
public OpDef.Builder setDescription(String value)
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
public OpDef.Builder clearDescription()
Additional, longer human-readable description of what the Op does.
string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public OpDef.Builder setDescriptionBytes(org.nd4j.shade.protobuf.ByteString value)
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
public OpDef.Builder setIsCommutative(boolean value)
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
public OpDef.Builder 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
public OpDef.Builder setIsAggregate(boolean value)
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
public OpDef.Builder 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
public OpDef.Builder 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). 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
public OpDef.Builder 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
public OpDef.Builder setAllowsUninitializedInput(boolean value)
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
public OpDef.Builder 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.
-
setUnknownFields
public final OpDef.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
mergeUnknownFields
public final OpDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
-