OpDef.Builder

public static final class OpDef.Builder

 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 type tensorflow.OpDef

Public Methods

OpDef.Builder
addAllAttr (Iterable<? extends OpDef.AttrDef > values)
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.Builder
addAllControlOutput (Iterable<String> values)
 Named control outputs for this operation.
OpDef.Builder
addAllInputArg (Iterable<? extends OpDef.ArgDef > values)
 Description of the input(s).
OpDef.Builder
addAllOutputArg (Iterable<? extends OpDef.ArgDef > values)
 Description of the output(s).
OpDef.Builder
addAttr ( OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.Builder
addAttr (int index, OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.Builder
addAttr ( OpDef.AttrDef value)
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.Builder
addAttr (int index, OpDef.AttrDef value)
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.AttrDef.Builder
addAttrBuilder ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.AttrDef.Builder
addAttrBuilder (int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.Builder
addControlOutput (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 ( OpDef.ArgDef.Builder builderForValue)
 Description of the input(s).
OpDef.Builder
addInputArg (int index, OpDef.ArgDef value)
 Description of the input(s).
OpDef.Builder
addInputArg ( OpDef.ArgDef value)
 Description of the input(s).
OpDef.Builder
addInputArg (int index, 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.Builder builderForValue)
 Description of the output(s).
OpDef.Builder
addOutputArg ( OpDef.ArgDef.Builder builderForValue)
 Description of the output(s).
OpDef.Builder
addOutputArg (int index, OpDef.ArgDef value)
 Description of the output(s).
OpDef.Builder
addOutputArg ( OpDef.ArgDef value)
 Description of the output(s).
OpDef.ArgDef.Builder
addOutputArgBuilder (int index)
 Description of the output(s).
OpDef.ArgDef.Builder
addOutputArgBuilder ()
 Description of the output(s).
OpDef.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
OpDef
OpDef
OpDef.Builder
OpDef.Builder
clearAllowsUninitializedInput ()
 By default, all inputs to an Op must be initialized Tensors.
OpDef.Builder
clearAttr ()
repeated .tensorflow.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)
 
bool is_commutative = 18;
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
boolean
getAllowsUninitializedInput ()
 By default, all inputs to an Op must be initialized Tensors.
OpDef.AttrDef
getAttr (int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.AttrDef.Builder
getAttrBuilder (int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
List< OpDef.AttrDef.Builder >
getAttrBuilderList ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
int
getAttrCount ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
List< OpDef.AttrDef >
getAttrList ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.AttrDefOrBuilder
getAttrOrBuilder (int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
List<? extends OpDef.AttrDefOrBuilder >
getAttrOrBuilderList ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
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
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.
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.
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
OpDef.ArgDef
getInputArg (int index)
 Description of the input(s).
OpDef.ArgDef.Builder
getInputArgBuilder (int index)
 Description of the input(s).
List< OpDef.ArgDef.Builder >
getInputArgBuilderList ()
 Description of the input(s).
int
getInputArgCount ()
 Description of the input(s).
List< OpDef.ArgDef >
getInputArgList ()
 Description of the input(s).
OpDef.ArgDefOrBuilder
getInputArgOrBuilder (int index)
 Description of the input(s).
List<? extends OpDef.ArgDefOrBuilder >
getInputArgOrBuilderList ()
 Description of the input(s).
boolean
getIsAggregate ()
 If is_aggregate is true, then this operation accepts N >= 2
 inputs and produces 1 output all of the same type.
boolean
getIsCommutative ()
 True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
 
bool is_commutative = 18;
boolean
getIsStateful ()
 Ops are marked as stateful if their behavior depends on some state beyond
 their input tensors (e.g.
String
getName ()
 Op names starting with an underscore are reserved for internal use.
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).
List< OpDef.ArgDef.Builder >
getOutputArgBuilderList ()
 Description of the output(s).
int
getOutputArgCount ()
 Description of the output(s).
List< OpDef.ArgDef >
getOutputArgList ()
 Description of the output(s).
OpDef.ArgDefOrBuilder
getOutputArgOrBuilder (int index)
 Description of the output(s).
List<? extends OpDef.ArgDefOrBuilder >
getOutputArgOrBuilderList ()
 Description of the output(s).
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.
final boolean
OpDef.Builder