OpDef.ArgDef

public static final class OpDef.ArgDef

 For describing inputs and outputs.
 
Protobuf type tensorflow.OpDef.ArgDef

Nested Classes

class OpDef.ArgDef.Builder
 For describing inputs and outputs. 

Constants

int DESCRIPTION_FIELD_NUMBER
int IS_REF_FIELD_NUMBER
int NAME_FIELD_NUMBER
int NUMBER_ATTR_FIELD_NUMBER
int TYPE_ATTR_FIELD_NUMBER
int TYPE_FIELD_NUMBER
int TYPE_LIST_ATTR_FIELD_NUMBER

Public Methods

boolean
equals (Object obj)
static OpDef.ArgDef
OpDef.ArgDef
String
getDescription ()
 Human readable description.
com.google.protobuf.ByteString
getDescriptionBytes ()
 Human readable description.
final static com.google.protobuf.Descriptors.Descriptor
boolean
getIsRef ()
 For inputs: if true, the inputs are required to be refs.
String
getName ()
 Name for the input/output.
com.google.protobuf.ByteString
getNameBytes ()
 Name for the input/output.
String
getNumberAttr ()
 if specified, attr must have type "int"
 
string number_attr = 5;
com.google.protobuf.ByteString
getNumberAttrBytes ()
 if specified, attr must have type "int"
 
string number_attr = 5;
int
DataType
getType ()
 Describes the type of one or more tensors that are accepted/produced
 by this input/output arg.
String
getTypeAttr ()
 if specified, attr must have type "type"
 
string type_attr = 4;
com.google.protobuf.ByteString
getTypeAttrBytes ()
 if specified, attr must have type "type"
 
string type_attr = 4;
String
getTypeListAttr ()
 If specified, attr must have type "list(type)", and none of
 type, type_attr, and number_attr may be specified.
com.google.protobuf.ByteString
getTypeListAttrBytes ()
 If specified, attr must have type "list(type)", and none of
 type, type_attr, and number_attr may be specified.
int
getTypeValue ()
 Describes the type of one or more tensors that are accepted/produced
 by this input/output arg.
final com.google.protobuf.UnknownFieldSet
int
final boolean
static OpDef.ArgDef.Builder
static OpDef.ArgDef.Builder
OpDef.ArgDef.Builder
static OpDef.ArgDef
parseDelimitedFrom (InputStream input)
static OpDef.ArgDef
parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.ArgDef
parseFrom (ByteBuffer data)
static OpDef.ArgDef
parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.ArgDef
parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.ArgDef
parseFrom (com.google.protobuf.CodedInputStream input)
static OpDef.ArgDef
parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.ArgDef
parseFrom (com.google.protobuf.ByteString data)
static OpDef.ArgDef
parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static OpDef.ArgDef
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
OpDef.ArgDef.Builder
void
writeTo (com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int DESCRIPTION_FIELD_NUMBER

Constant Value: 2

public static final int IS_REF_FIELD_NUMBER

Constant Value: 16

public static final int NAME_FIELD_NUMBER

Constant Value: 1

public static final int NUMBER_ATTR_FIELD_NUMBER

Constant Value: 5

public static final int TYPE_ATTR_FIELD_NUMBER

Constant Value: 4

public static final int TYPE_FIELD_NUMBER

Constant Value: 3

public static final int TYPE_LIST_ATTR_FIELD_NUMBER

Constant Value: 6

Public Methods

public boolean equals (Object obj)

public static OpDef.ArgDef getDefaultInstance ()

public OpDef.ArgDef getDefaultInstanceForType ()

public String getDescription ()

 Human readable description.
 
string description = 2;

public com.google.protobuf.ByteString getDescriptionBytes ()

 Human readable description.
 
string description = 2;

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public boolean getIsRef ()

 For inputs: if true, the inputs are required to be refs.
   By default, inputs can be either refs or non-refs.
 For outputs: if true, outputs are refs, otherwise they are not.
 
bool is_ref = 16;

public String getName ()

 Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
 
string name = 1;

public com.google.protobuf.ByteString getNameBytes ()

 Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
 
string name = 1;

public String getNumberAttr ()

 if specified, attr must have type "int"
 
string number_attr = 5;

public com.google.protobuf.ByteString getNumberAttrBytes ()

 if specified, attr must have type "int"
 
string number_attr = 5;

public getParserForType ()

public int getSerializedSize ()

public DataType getType ()

 Describes the type of one or more tensors that are accepted/produced
 by this input/output arg.  The only legal combinations are:
 * For a single tensor: either the "type" field is set or the
   "type_attr" field is set to the name of an attr with type "type".
 * For a sequence of tensors with the same type: the "number_attr"
   field will be set to the name of an attr with type "int", and
   either the "type" or "type_attr" field will be set as for
   single tensors.
 * For a sequence of tensors, the "type_list_attr" field will be set
   to the name of an attr with type "list(type)".
 
.tensorflow.DataType type = 3;

public String getTypeAttr ()

 if specified, attr must have type "type"
 
string type_attr = 4;

public com.google.protobuf.ByteString getTypeAttrBytes ()

 if specified, attr must have type "type"
 
string type_attr = 4;