Package org.platanios.tensorflow.proto
Class OpDef.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
- org.platanios.tensorflow.proto.OpDef.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.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.IfChange
Protobuf typeorg.platanios.tensorflow.proto.OpDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OpDef.Builder
addAllAttr(java.lang.Iterable<? extends OpDef.AttrDef> values)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.Builder
addAllControlOutput(java.lang.Iterable<java.lang.String> values)
Named control outputs for this operation.OpDef.Builder
addAllInputArg(java.lang.Iterable<? extends OpDef.ArgDef> values)
Description of the input(s).OpDef.Builder
addAllOutputArg(java.lang.Iterable<? extends OpDef.ArgDef> values)
Description of the output(s).OpDef.Builder
addAttr(int index, OpDef.AttrDef value)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.Builder
addAttr(int index, OpDef.AttrDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.Builder
addAttr(OpDef.AttrDef value)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.Builder
addAttr(OpDef.AttrDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.AttrDef.Builder
addAttrBuilder()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.AttrDef.Builder
addAttrBuilder(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.Builder
addControlOutput(java.lang.String value)
Named control outputs for this operation.OpDef.Builder
addControlOutputBytes(com.google.protobuf.ByteString value)
Named control outputs for this operation.OpDef.Builder
addInputArg(int index, OpDef.ArgDef value)
Description of the input(s).OpDef.Builder
addInputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).OpDef.Builder
addInputArg(OpDef.ArgDef value)
Description of the input(s).OpDef.Builder
addInputArg(OpDef.ArgDef.Builder builderForValue)
Description of the input(s).OpDef.ArgDef.Builder
addInputArgBuilder()
Description of the input(s).OpDef.ArgDef.Builder
addInputArgBuilder(int index)
Description of the input(s).OpDef.Builder
addOutputArg(int index, OpDef.ArgDef value)
Description of the output(s).OpDef.Builder
addOutputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).OpDef.Builder
addOutputArg(OpDef.ArgDef value)
Description of the output(s).OpDef.Builder
addOutputArg(OpDef.ArgDef.Builder builderForValue)
Description of the output(s).OpDef.ArgDef.Builder
addOutputArgBuilder()
Description of the output(s).OpDef.ArgDef.Builder
addOutputArgBuilder(int index)
Description of the output(s).OpDef.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
OpDef
build()
OpDef
buildPartial()
OpDef.Builder
clear()
OpDef.Builder
clearAllowsUninitializedInput()
By default, all inputs to an Op must be initialized Tensors.OpDef.Builder
clearAttr()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.Builder
clearControlOutput()
Named control outputs for this operation.OpDef.Builder
clearDeprecation()
Optional deprecation based on GraphDef versions.OpDef.Builder
clearDescription()
Additional, longer human-readable description of what the Op does.OpDef.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
OpDef.Builder
clearInputArg()
Description of the input(s).OpDef.Builder
clearIsAggregate()
If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type.OpDef.Builder
clearIsCommutative()
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)OpDef.Builder
clearIsStateful()
Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g.OpDef.Builder
clearName()
Op names starting with an underscore are reserved for internal use.OpDef.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
OpDef.Builder
clearOutputArg()
Description of the output(s).OpDef.Builder
clearSummary()
One-line human-readable description of what the Op does.OpDef.Builder
clone()
boolean
getAllowsUninitializedInput()
By default, all inputs to an Op must be initialized Tensors.OpDef.AttrDef
getAttr(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.AttrDef.Builder
getAttrBuilder(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
java.util.List<OpDef.AttrDef.Builder>
getAttrBuilderList()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
int
getAttrCount()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
java.util.List<OpDef.AttrDef>
getAttrList()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.AttrDefOrBuilder
getAttrOrBuilder(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
java.util.List<? extends OpDef.AttrDefOrBuilder>
getAttrOrBuilderList()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
java.lang.String
getControlOutput(int index)
Named control outputs for this operation.com.google.protobuf.ByteString
getControlOutputBytes(int index)
Named control outputs for this operation.int
getControlOutputCount()
Named control outputs for this operation.com.google.protobuf.ProtocolStringList
getControlOutputList()
Named control outputs for this operation.OpDef
getDefaultInstanceForType()
OpDeprecation
getDeprecation()
Optional deprecation based on GraphDef versions.OpDeprecation.Builder
getDeprecationBuilder()
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()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
OpDef.ArgDef
getInputArg(int index)
Description of the input(s).OpDef.ArgDef.Builder
getInputArgBuilder(int index)
Description of the input(s).java.util.List<OpDef.ArgDef.Builder>
getInputArgBuilderList()
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).OpDef.ArgDef.Builder
getOutputArgBuilder(int index)
Description of the output(s).java.util.List<OpDef.ArgDef.Builder>
getOutputArgBuilderList()
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).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.boolean
hasDeprecation()
Optional deprecation based on GraphDef versions.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
OpDef.Builder
mergeDeprecation(OpDeprecation value)
Optional deprecation based on GraphDef versions.OpDef.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
OpDef.Builder
mergeFrom(com.google.protobuf.Message other)
OpDef.Builder
mergeFrom(OpDef other)
OpDef.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
OpDef.Builder
removeAttr(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.Builder
removeInputArg(int index)
Description of the input(s).OpDef.Builder
removeOutputArg(int index)
Description of the output(s).OpDef.Builder
setAllowsUninitializedInput(boolean value)
By default, all inputs to an Op must be initialized Tensors.OpDef.Builder
setAttr(int index, OpDef.AttrDef value)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.Builder
setAttr(int index, OpDef.AttrDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
OpDef.Builder
setControlOutput(int index, java.lang.String value)
Named control outputs for this operation.OpDef.Builder
setDeprecation(OpDeprecation value)
Optional deprecation based on GraphDef versions.OpDef.Builder
setDeprecation(OpDeprecation.Builder builderForValue)
Optional deprecation based on GraphDef versions.OpDef.Builder
setDescription(java.lang.String value)
Additional, longer human-readable description of what the Op does.OpDef.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Additional, longer human-readable description of what the Op does.OpDef.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
OpDef.Builder
setInputArg(int index, OpDef.ArgDef value)
Description of the input(s).OpDef.Builder
setInputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).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.OpDef.Builder
setIsCommutative(boolean value)
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)OpDef.Builder
setIsStateful(boolean value)
Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g.OpDef.Builder
setName(java.lang.String value)
Op names starting with an underscore are reserved for internal use.OpDef.Builder
setNameBytes(com.google.protobuf.ByteString value)
Op names starting with an underscore are reserved for internal use.OpDef.Builder
setOutputArg(int index, OpDef.ArgDef value)
Description of the output(s).OpDef.Builder
setOutputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).OpDef.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
OpDef.Builder
setSummary(java.lang.String value)
One-line human-readable description of what the Op does.OpDef.Builder
setSummaryBytes(com.google.protobuf.ByteString value)
One-line human-readable description of what the Op does.OpDef.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.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 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
clear
public OpDef.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
getDefaultInstanceForType
public OpDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public OpDef build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OpDef buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OpDef.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
setField
public OpDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
clearField
public OpDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
clearOneof
public OpDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
setRepeatedField
public OpDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
addRepeatedField
public OpDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
mergeFrom
public OpDef.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OpDef.Builder>
-
mergeFrom
public OpDef.Builder mergeFrom(OpDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
mergeFrom
public OpDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OpDef.Builder>
- Throws:
java.io.IOException
-
getName
public 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;
- Specified by:
getName
in 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:
getNameBytes
in interfaceOpDefOrBuilder
- Returns:
- The bytes for name.
-
setName
public OpDef.Builder setName(java.lang.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(com.google.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 java.util.List<OpDef.ArgDef> getInputArgList()
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
- Specified by:
getInputArgList
in interfaceOpDefOrBuilder
-
getInputArgCount
public int getInputArgCount()
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
- Specified by:
getInputArgCount
in interfaceOpDefOrBuilder
-
getInputArg
public OpDef.ArgDef getInputArg(int index)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
- Specified by:
getInputArg
in interfaceOpDefOrBuilder
-
setInputArg
public OpDef.Builder setInputArg(int index, OpDef.ArgDef value)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
setInputArg
public OpDef.Builder setInputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
addInputArg
public OpDef.Builder addInputArg(OpDef.ArgDef value)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
addInputArg
public OpDef.Builder addInputArg(int index, OpDef.ArgDef value)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
addInputArg
public OpDef.Builder addInputArg(OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
addInputArg
public OpDef.Builder addInputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
addAllInputArg
public OpDef.Builder addAllInputArg(java.lang.Iterable<? extends OpDef.ArgDef> values)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
clearInputArg
public OpDef.Builder clearInputArg()
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
removeInputArg
public OpDef.Builder removeInputArg(int index)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
getInputArgBuilder
public OpDef.ArgDef.Builder getInputArgBuilder(int index)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
getInputArgOrBuilder
public OpDef.ArgDefOrBuilder getInputArgOrBuilder(int index)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
- Specified by:
getInputArgOrBuilder
in interfaceOpDefOrBuilder
-
getInputArgOrBuilderList
public java.util.List<? extends OpDef.ArgDefOrBuilder> getInputArgOrBuilderList()
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
- Specified by:
getInputArgOrBuilderList
in interfaceOpDefOrBuilder
-
addInputArgBuilder
public OpDef.ArgDef.Builder addInputArgBuilder()
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
addInputArgBuilder
public OpDef.ArgDef.Builder addInputArgBuilder(int index)
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
getInputArgBuilderList
public java.util.List<OpDef.ArgDef.Builder> getInputArgBuilderList()
Description of the input(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef input_arg = 2;
-
getOutputArgList
public java.util.List<OpDef.ArgDef> getOutputArgList()
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
- Specified by:
getOutputArgList
in interfaceOpDefOrBuilder
-
getOutputArgCount
public int getOutputArgCount()
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
- Specified by:
getOutputArgCount
in interfaceOpDefOrBuilder
-
getOutputArg
public OpDef.ArgDef getOutputArg(int index)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
- Specified by:
getOutputArg
in interfaceOpDefOrBuilder
-
setOutputArg
public OpDef.Builder setOutputArg(int index, OpDef.ArgDef value)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
setOutputArg
public OpDef.Builder setOutputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
addOutputArg
public OpDef.Builder addOutputArg(OpDef.ArgDef value)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
addOutputArg
public OpDef.Builder addOutputArg(int index, OpDef.ArgDef value)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
addOutputArg
public OpDef.Builder addOutputArg(OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
addOutputArg
public OpDef.Builder addOutputArg(int index, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
addAllOutputArg
public OpDef.Builder addAllOutputArg(java.lang.Iterable<? extends OpDef.ArgDef> values)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
clearOutputArg
public OpDef.Builder clearOutputArg()
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
removeOutputArg
public OpDef.Builder removeOutputArg(int index)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
getOutputArgBuilder
public OpDef.ArgDef.Builder getOutputArgBuilder(int index)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
getOutputArgOrBuilder
public OpDef.ArgDefOrBuilder getOutputArgOrBuilder(int index)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
- Specified by:
getOutputArgOrBuilder
in interfaceOpDefOrBuilder
-
getOutputArgOrBuilderList
public java.util.List<? extends OpDef.ArgDefOrBuilder> getOutputArgOrBuilderList()
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
- Specified by:
getOutputArgOrBuilderList
in interfaceOpDefOrBuilder
-
addOutputArgBuilder
public OpDef.ArgDef.Builder addOutputArgBuilder()
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
addOutputArgBuilder
public OpDef.ArgDef.Builder addOutputArgBuilder(int index)
Description of the output(s).
repeated .org.platanios.tensorflow.proto.OpDef.ArgDef output_arg = 3;
-
getOutputArgBuilderList
public java.util.List<OpDef.ArgDef.Builder> getOutputArgBuilderList()
Description of the output(s).
repeated .org.platanios.tensorflow.proto.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:
getControlOutputList
in 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:
getControlOutputCount
in interfaceOpDefOrBuilder
- Returns:
- The count of controlOutput.
-
getControlOutput
public java.lang.String getControlOutput(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:
getControlOutput
in 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:
getControlOutputBytes
in interfaceOpDefOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the controlOutput at the given index.
-
setControlOutput
public OpDef.Builder setControlOutput(int index, java.lang.String value)
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
public OpDef.Builder addControlOutput(java.lang.String value)
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
public OpDef.Builder addAllControlOutput(java.lang.Iterable<java.lang.String> values)
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
public OpDef.Builder 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
public OpDef.Builder addControlOutputBytes(com.google.protobuf.ByteString value)
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
public java.util.List<OpDef.AttrDef> getAttrList()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
- Specified by:
getAttrList
in interfaceOpDefOrBuilder
-
getAttrCount
public int getAttrCount()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
- Specified by:
getAttrCount
in interfaceOpDefOrBuilder
-
getAttr
public OpDef.AttrDef getAttr(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
- Specified by:
getAttr
in interfaceOpDefOrBuilder
-
setAttr
public OpDef.Builder setAttr(int index, OpDef.AttrDef value)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
setAttr
public OpDef.Builder setAttr(int index, OpDef.AttrDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
addAttr
public OpDef.Builder addAttr(OpDef.AttrDef value)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
addAttr
public OpDef.Builder addAttr(int index, OpDef.AttrDef value)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
addAttr
public OpDef.Builder addAttr(OpDef.AttrDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
addAttr
public OpDef.Builder addAttr(int index, OpDef.AttrDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
addAllAttr
public OpDef.Builder addAllAttr(java.lang.Iterable<? extends OpDef.AttrDef> values)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
clearAttr
public OpDef.Builder clearAttr()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
removeAttr
public OpDef.Builder removeAttr(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
getAttrBuilder
public OpDef.AttrDef.Builder getAttrBuilder(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
getAttrOrBuilder
public OpDef.AttrDefOrBuilder getAttrOrBuilder(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
- Specified by:
getAttrOrBuilder
in interfaceOpDefOrBuilder
-
getAttrOrBuilderList
public java.util.List<? extends OpDef.AttrDefOrBuilder> getAttrOrBuilderList()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
- Specified by:
getAttrOrBuilderList
in interfaceOpDefOrBuilder
-
addAttrBuilder
public OpDef.AttrDef.Builder addAttrBuilder()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
addAttrBuilder
public OpDef.AttrDef.Builder addAttrBuilder(int index)
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
getAttrBuilderList
public java.util.List<OpDef.AttrDef.Builder> getAttrBuilderList()
repeated .org.platanios.tensorflow.proto.OpDef.AttrDef attr = 4;
-
hasDeprecation
public boolean hasDeprecation()
Optional deprecation based on GraphDef versions.
.org.platanios.tensorflow.proto.OpDeprecation deprecation = 8;
- Specified by:
hasDeprecation
in interfaceOpDefOrBuilder
- Returns:
- Whether the deprecation field is set.
-
getDeprecation
public OpDeprecation getDeprecation()
Optional deprecation based on GraphDef versions.
.org.platanios.tensorflow.proto.OpDeprecation deprecation = 8;
- Specified by:
getDeprecation
in interfaceOpDefOrBuilder
- Returns:
- The deprecation.
-
setDeprecation
public OpDef.Builder setDeprecation(OpDeprecation value)
Optional deprecation based on GraphDef versions.
.org.platanios.tensorflow.proto.OpDeprecation deprecation = 8;
-
setDeprecation
public OpDef.Builder setDeprecation(OpDeprecation.Builder builderForValue)
Optional deprecation based on GraphDef versions.
.org.platanios.tensorflow.proto.OpDeprecation deprecation = 8;
-
mergeDeprecation
public OpDef.Builder mergeDeprecation(OpDeprecation value)
Optional deprecation based on GraphDef versions.
.org.platanios.tensorflow.proto.OpDeprecation deprecation = 8;
-
clearDeprecation
public OpDef.Builder clearDeprecation()
Optional deprecation based on GraphDef versions.
.org.platanios.tensorflow.proto.OpDeprecation deprecation = 8;
-
getDeprecationBuilder
public OpDeprecation.Builder getDeprecationBuilder()
Optional deprecation based on GraphDef versions.
.org.platanios.tensorflow.proto.OpDeprecation deprecation = 8;
-
getDeprecationOrBuilder
public OpDeprecationOrBuilder getDeprecationOrBuilder()
Optional deprecation based on GraphDef versions.
.org.platanios.tensorflow.proto.OpDeprecation deprecation = 8;
- Specified by:
getDeprecationOrBuilder
in interfaceOpDefOrBuilder
-
getSummary
public java.lang.String getSummary()
One-line human-readable description of what the Op does.
string summary = 5;
- Specified by:
getSummary
in 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:
getSummaryBytes
in interfaceOpDefOrBuilder
- Returns:
- The bytes for summary.
-
setSummary
public OpDef.Builder setSummary(java.lang.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(com.google.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 java.lang.String getDescription()
Additional, longer human-readable description of what the Op does.
string description = 6;
- Specified by:
getDescription
in 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:
getDescriptionBytes
in interfaceOpDefOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public OpDef.Builder setDescription(java.lang.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(com.google.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:
getIsCommutative
in 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:
getIsAggregate
in 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:
getIsStateful
in 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:
getAllowsUninitializedInput
in 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(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
mergeUnknownFields
public final OpDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.Builder>
-
-