OpDef

public final class OpDef

 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

Nested Classes

class OpDef.ArgDef
 For describing inputs and outputs. 
interface OpDef.ArgDefOrBuilder
class OpDef.AttrDef
 Description of the graph-construction-time configuration of this
 Op. 
interface OpDef.AttrDefOrBuilder
class OpDef.Builder
 Defines an operation. 

Constants

int ALLOWS_UNINITIALIZED_INPUT_FIELD_NUMBER
int ATTR_FIELD_NUMBER
int CONTROL_OUTPUT_FIELD_NUMBER
int DEPRECATION_FIELD_NUMBER
int DESCRIPTION_FIELD_NUMBER
int INPUT_ARG_FIELD_NUMBER
int IS_AGGREGATE_FIELD_NUMBER
int IS_COMMUTATIVE_FIELD_NUMBER
int IS_STATEFUL_FIELD_NUMBER
int NAME_FIELD_NUMBER
int OUTPUT_ARG_FIELD_NUMBER
int SUMMARY_FIELD_NUMBER

Public Methods

boolean
equals (Object obj)
boolean
getAllowsUninitializedInput ()
 By default, all inputs to an Op must be initialized Tensors.
OpDef.AttrDef
getAttr (int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
int
getAttrCount ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
List< OpDef.AttrDef >
getAttrList ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.AttrDefOrBuilder
getAttrOrBuilder (int index)
repeated .tensorflow.OpDef.AttrDef attr = 4;
List<? extends OpDef.AttrDefOrBuilder >
getAttrOrBuilderList ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
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.
static OpDef
OpDef
OpDeprecation
getDeprecation ()
 Optional deprecation based on GraphDef versions.
OpDeprecationOrBuilder
getDeprecationOrBuilder ()
 Optional deprecation based on GraphDef versions.
String
getDescription ()
 Additional, longer human-readable description of what the Op does.
com.google.protobuf.ByteString
getDescriptionBytes ()
 Additional, longer human-readable description of what the Op does.
final static com.google.protobuf.Descriptors.Descriptor
OpDef.ArgDef
getInputArg (int index)
 Description of the input(s).
int
getInputArgCount ()
 Description of the input(s).
List< OpDef.ArgDef >
getInputArgList ()
 Description of the input(s).
OpDef.ArgDefOrBuilder
getInputArgOrBuilder (int index)
 Description of the input(s).
List<? extends OpDef.ArgDefOrBuilder >
getInputArgOrBuilderList ()
 Description of the input(s).
boolean
getIsAggregate ()
 If is_aggregate is true, then this operation accepts N >= 2
 inputs and produces 1 output all of the same type.
boolean
getIsCommutative ()
 True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
 
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).
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).
int
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.
final com.google.protobuf.UnknownFieldSet
boolean
hasDeprecation ()
 Optional deprecation based on GraphDef versions.
int
final boolean
static OpDef.Builder
static OpDef.Builder
OpDef.Builder
static OpDef
parseDelimitedFrom (InputStream input)
static OpDef
parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef
parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef
parseFrom (com.google.protobuf.CodedInputStream input)
static OpDef
parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef
parseFrom (ByteBuffer data)
static OpDef
parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef
parseFrom (com.google.protobuf.ByteString data)
static OpDef
parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
OpDef.Builder
void
writeTo (com.google.protobuf.CodedOutputStream output)

Inherited Methods