FunctionDef

public final class FunctionDef

 A function can be instantiated when the runtime can bind every attr
 with a value. When a GraphDef has a call to a function, it must
 have binding for every attr defined in the signature.
 TODO(zhifengc):
   * device spec, etc.
 
tensorflow.FunctionDef tipo tensorflow.FunctionDef

Classes aninhadas

aula FunctionDef.ArgAttrs
 Attributes for function arguments. 
interface FunctionDef.ArgAttrsOrBuilder
aula FunctionDef.Builder
 A function can be instantiated when the runtime can bind every attr
 with a value. 

Constantes

int ARG_ATTR_FIELD_NUMBER
int ATTR_FIELD_NUMBER
int CONTROL_RET_FIELD_NUMBER
int NODE_DEF_FIELD_NUMBER
int RESOURCE_ARG_UNIQUE_ID_FIELD_NUMBER
int RET_FIELD_NUMBER
int SIGNATURE_FIELD_NUMBER

Métodos Públicos

boleano
containsArgAttr (chave int)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
boleano
containsAttr (chave String)
 Attributes specific to this function definition.
boleano
containsControlRet (chave String)
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
boleano
containsResourceArgUniqueId (chave int)
 Unique IDs for each resource argument, used to track aliasing resources.
boleano
containsRet (chave String)
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
boleano
igual a (objeto obj)
Map <Integer, FunctionDef.ArgAttrs >
int
getArgAttrCount ()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
Map <Integer, FunctionDef.ArgAttrs >
getArgAttrMap ()
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
FunctionDef.ArgAttrs
getArgAttrOrDefault (int key, FunctionDef.ArgAttrs defaultValue)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
FunctionDef.ArgAttrs
getArgAttrOrThrow (int key)
map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
Map <String, AttrValue >
getAttr ()
getAttrMap() vez disso, use getAttrMap() .
int
getAttrCount ()
 Attributes specific to this function definition.
Map <String, AttrValue >
getAttrMap ()
 Attributes specific to this function definition.
AttrValue
getAttrOrDefault (String key, AttrValue defaultValue)
 Attributes specific to this function definition.
AttrValue
getAttrOrThrow (String key)
 Attributes specific to this function definition.
Map <String, String>
getControlRet ()
Em vez disso, use getControlRetMap() .
int
getControlRetCount ()
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
Map <String, String>
getControlRetMap ()
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
Fragmento
getControlRetOrDefault (String key, String defaultValue)
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
Fragmento
getControlRetOrThrow (String key)
 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
FunctionDef estático
FunctionDef
final static com.google.protobuf.Descriptors.Descriptor
NodeDef
getNodeDef (índice interno )
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
int
getNodeDefCount ()
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
Lista < NodeDef >
getNodeDefList ()
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
NodeDefOrBuilder
getNodeDefOrBuilder (índice interno )
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
Lista <? estende NodeDefOrBuilder >
getNodeDefOrBuilderList ()
 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first.
Map <Integer, Integer>
int
getResourceArgUniqueIdCount ()
 Unique IDs for each resource argument, used to track aliasing resources.
Map <Integer, Integer>
getResourceArgUniqueIdMap ()
 Unique IDs for each resource argument, used to track aliasing resources.
int
getResourceArgUniqueIdOrDefault (int key, int defaultValue)
 Unique IDs for each resource argument, used to track aliasing resources.
int
getResourceArgUniqueIdOrThrow (int key)
 Unique IDs for each resource argument, used to track aliasing resources.
Map <String, String>
getRet ()
getRetMap() vez disso, use getRetMap() .
int
getRetCount ()
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
Map <String, String>
getRetMap ()
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
Fragmento
getRetOrDefault (String key, String defaultValue)
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
Fragmento
getRetOrThrow (String key)
 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
int
OpDef
getSignature ()
 The definition of the function's name, arguments, return values,
 attrs etc.
OpDefOrBuilder
getSignatureOrBuilder ()
 The definition of the function's name, arguments, return values,
 attrs etc.
final com.google.protobuf.UnknownFieldSet
boleano
hasSignature ()
 The definition of the function's name, arguments, return values,
 attrs etc.
int
final booleano
static FunctionDef.Builder
static FunctionDef.Builder
newBuilder (protótipo FunctionDef )
FunctionDef.Builder
FunctionDef estático
parseDelimitedFrom (input InputStream)
estática FunctionDef
parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
estática FunctionDef
parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
estática FunctionDef
parseFrom (com.google.protobuf.CodedInputStream input)
estática FunctionDef
parseFrom (byte [] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
estática FunctionDef
parseFrom (dados ByteBuffer)
estática FunctionDef
parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
estática FunctionDef
parseFrom (com.google.protobuf.ByteString data)
estática FunctionDef
parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
estática FunctionDef
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
estático
FunctionDef.Builder
vazio
writeTo (saída com.google.protobuf.CodedOutputStream)

Métodos herdados

Constantes

public static final int ARG_ATTR_FIELD_NUMBER

Valor constante: 7

public static final int ATTR_FIELD_NUMBER

Valor constante: 5

public static final int CONTROL_RET_FIELD_NUMBER

Valor constante: 6

public static final int NODE_DEF_FIELD_NUMBER

Valor Constante: 3

public static final int RESOURCE_ARG_UNIQUE_ID_FIELD_NUMBER

Valor constante: 8

public static final int RET_FIELD_NUMBER

Valor constante: 4

public static final int SIGNATURE_FIELD_NUMBER

Valor Constante: 1

Métodos Públicos

public boolean containsArgAttr (int key)

map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;

public boolean containsAttr (String key)

 Attributes specific to this function definition.
 
map<string, .tensorflow.AttrValue> attr = 5;

public boolean containsControlRet (String key)

 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
 
map<string, string> control_ret = 6;

public boolean containsResourceArgUniqueId (int key)

 Unique IDs for each resource argument, used to track aliasing resources. If
 Argument A and Argument B alias each other, then
 resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
 If this field is empty, none of the arguments could alias; otherwise, every
 resource argument should have an entry in this field.
 When instantiated, the unique IDs will be attached to the _Arg nodes'
 "_resource_arg_unique_id" attribute.
 
map<uint32, uint32> resource_arg_unique_id = 8;

public boolean containsRet (String key)

 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
 
map<string, string> ret = 4;

public boolean equals (Object obj)

public Map <Integer, FunctionDef.ArgAttrs > getArgAttr ()

public int getArgAttrCount ()

map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;

public Map <Integer, FunctionDef.ArgAttrs > getArgAttrMap ()

map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;

public FunctionDef.ArgAttrs getArgAttrOrDefault (int key, FunctionDef.ArgAttrs defaultValue)

map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;

public FunctionDef.ArgAttrs getArgAttrOrThrow (chave int)

map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;

public Map <String, AttrValue > getAttr ()

getAttrMap() vez disso, use getAttrMap() .

public int getAttrCount ()

 Attributes specific to this function definition.
 
map<string, .tensorflow.AttrValue> attr = 5;

public Map <String, AttrValue > getAttrMap ()

 Attributes specific to this function definition.
 
map<string, .tensorflow.AttrValue> attr = 5;

public AttrValue getAttrOrDefault (String key, AttrValue defaultValue)

 Attributes specific to this function definition.
 
map<string, .tensorflow.AttrValue> attr = 5;

public AttrValue getAttrOrThrow (String key)

 Attributes specific to this function definition.
 
map<string, .tensorflow.AttrValue> attr = 5;

public Map <String, String> getControlRet ()

Em vez disso, use getControlRetMap() .

public int getControlRetCount ()

 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
 
map<string, string> control_ret = 6;

public Map <String, String> getControlRetMap ()

 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
 
map<string, string> control_ret = 6;

public String getControlRetOrDefault (String key, String defaultValue)

 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
 
map<string, string> control_ret = 6;

public String getControlRetOrThrow (String key)

 A mapping from control output names from `signature` to node names in
 `node_def` which should be control outputs of this function.
 
map<string, string> control_ret = 6;

public static FunctionDef getDefaultInstance ()

public FunctionDef getDefaultInstanceForType ()

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

public NodeDef getNodeDef (índice interno )

 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first. If not resolved, "func" is assumed to
 be a builtin op.
 
repeated .tensorflow.NodeDef node_def = 3;

public int getNodeDefCount ()

 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first. If not resolved, "func" is assumed to
 be a builtin op.
 
repeated .tensorflow.NodeDef node_def = 3;

public List < NodeDef > getNodeDefList ()

 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first. If not resolved, "func" is assumed to
 be a builtin op.
 
repeated .tensorflow.NodeDef node_def = 3;

public NodeDefOrBuilder getNodeDefOrBuilder (índice interno )

 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first. If not resolved, "func" is assumed to
 be a builtin op.
 
repeated .tensorflow.NodeDef node_def = 3;

Lista pública <? estende NodeDefOrBuilder > getNodeDefOrBuilderList ()

 By convention, "op" in node_def is resolved by consulting with a
 user-defined library first. If not resolved, "func" is assumed to
 be a builtin op.
 
repeated .tensorflow.NodeDef node_def = 3;

público getParserForType ()

public Map <Integer, Integer> getResourceArgUniqueId ()

Em vez disso, use getResourceArgUniqueIdMap() .

public int getResourceArgUniqueIdCount ()

 Unique IDs for each resource argument, used to track aliasing resources. If
 Argument A and Argument B alias each other, then
 resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
 If this field is empty, none of the arguments could alias; otherwise, every
 resource argument should have an entry in this field.
 When instantiated, the unique IDs will be attached to the _Arg nodes'
 "_resource_arg_unique_id" attribute.
 
map<uint32, uint32> resource_arg_unique_id = 8;

public Map <Integer, Integer> getResourceArgUniqueIdMap ()

 Unique IDs for each resource argument, used to track aliasing resources. If
 Argument A and Argument B alias each other, then
 resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
 If this field is empty, none of the arguments could alias; otherwise, every
 resource argument should have an entry in this field.
 When instantiated, the unique IDs will be attached to the _Arg nodes'
 "_resource_arg_unique_id" attribute.
 
map<uint32, uint32> resource_arg_unique_id = 8;

public int getResourceArgUniqueIdOrDefault (int key, int defaultValue)

 Unique IDs for each resource argument, used to track aliasing resources. If
 Argument A and Argument B alias each other, then
 resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
 If this field is empty, none of the arguments could alias; otherwise, every
 resource argument should have an entry in this field.
 When instantiated, the unique IDs will be attached to the _Arg nodes'
 "_resource_arg_unique_id" attribute.
 
map<uint32, uint32> resource_arg_unique_id = 8;

public int getResourceArgUniqueIdOrThrow (int key)

 Unique IDs for each resource argument, used to track aliasing resources. If
 Argument A and Argument B alias each other, then
 resource_arg_unique_ids[A.index] == resource_arg_unique_ids[B.index].
 If this field is empty, none of the arguments could alias; otherwise, every
 resource argument should have an entry in this field.
 When instantiated, the unique IDs will be attached to the _Arg nodes'
 "_resource_arg_unique_id" attribute.
 
map<uint32, uint32> resource_arg_unique_id = 8;

public Map <String, String> getRet ()

getRetMap() vez disso, use getRetMap() .

public int getRetCount ()

 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
 
map<string, string> ret = 4;

public Map <String, String> getRetMap ()

 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
 
map<string, string> ret = 4;

public String getRetOrDefault (String key, String defaultValue)

 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
 
map<string, string> ret = 4;

public String getRetOrThrow (String key)

 A mapping from the output arg names from `signature` to the
 outputs from `node_def` that should be returned by the function.
 
map<string, string> ret = 4;

public int getSerializedSize ()

public OpDef getSignature ()

 The definition of the function's name, arguments, return values,
 attrs etc.
 
.tensorflow.OpDef signature = 1;

public OpDefOrBuilder getSignatureOrBuilder ()

 The definition of the function's name, arguments, return values,
 attrs etc.
 
.tensorflow.OpDef signature = 1;

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public boolean hasSignature ()

 The definition of the function's name, arguments, return values,
 attrs etc.
 
.tensorflow.OpDef signature = 1;

public int hashCode ()

public final boolean isInitialized ()

public static FunctionDef.Builder newBuilder ()

public static FunctionDef.Builder newBuilder (protótipo FunctionDef )

public FunctionDef.Builder newBuilderForType ()

public static FunctionDef parseDelimitedFrom (InputStream input)

Lança
IOException

public static FunctionDef parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
IOException

public static FunctionDef parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
InvalidProtocolBufferException

public static FunctionDef parseFrom (com.google.protobuf.CodedInputStream input)

Lança
IOException

public static FunctionDef parseFrom (byte [] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
InvalidProtocolBufferException

public static FunctionDef parseFrom (dados ByteBuffer)

Lança
InvalidProtocolBufferException

public static FunctionDef parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
IOException

public static FunctionDef parseFrom (com.google.protobuf.ByteString data)

Lança
InvalidProtocolBufferException

public static FunctionDef parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
IOException

public static FunctionDef parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
InvalidProtocolBufferException

estática pública analisador ()

public FunctionDef.Builder toBuilder ()

public void writeTo (saída com.google.protobuf.CodedOutputStream)

Lança
IOException