Interface FunctionDefOrBuilder

All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
All Known Implementing Classes:
FunctionDef, FunctionDef.Builder

public interface FunctionDefOrBuilder extends MessageOrBuilder
  • Method Details

    • hasSignature

      boolean hasSignature()
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
      Returns:
      Whether the signature field is set.
    • getSignature

      OpDef getSignature()
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
      Returns:
      The signature.
    • getSignatureOrBuilder

      OpDefOrBuilder getSignatureOrBuilder()
      The definition of the function's name, arguments, return values,
      attrs etc.
      
      .tensorflow.OpDef signature = 1;
    • getAttrCount

      int getAttrCount()
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
    • containsAttr

      boolean containsAttr(String key)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
    • getAttr

      Deprecated.
      Use getAttrMap() instead.
    • getAttrMap

      Map<String, AttrValue> getAttrMap()
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
    • getAttrOrDefault

      AttrValue getAttrOrDefault(String key, AttrValue defaultValue)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
    • getAttrOrThrow

      AttrValue getAttrOrThrow(String key)
      Attributes specific to this function definition.
      
      map<string, .tensorflow.AttrValue> attr = 5;
    • getArgAttrCount

      int getArgAttrCount()
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    • containsArgAttr

      boolean containsArgAttr(int key)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    • getArgAttr

      Deprecated.
      Use getArgAttrMap() instead.
    • getArgAttrMap

      Map<Integer, FunctionDef.ArgAttrs> getArgAttrMap()
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    • getArgAttrOrDefault

      FunctionDef.ArgAttrs getArgAttrOrDefault(int key, FunctionDef.ArgAttrs defaultValue)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    • getArgAttrOrThrow

      FunctionDef.ArgAttrs getArgAttrOrThrow(int key)
      map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    • getResourceArgUniqueIdCount

      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;
    • containsResourceArgUniqueId

      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;
    • getResourceArgUniqueId

      @Deprecated Map<Integer,Integer> getResourceArgUniqueId()
      Deprecated.
    • getResourceArgUniqueIdMap

      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;
    • getResourceArgUniqueIdOrDefault

      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;
    • getResourceArgUniqueIdOrThrow

      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;
    • getNodeDefList

      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;
    • getNodeDef

      NodeDef getNodeDef(int index)
      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;
    • getNodeDefCount

      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;
    • getNodeDefOrBuilderList

      List<? extends 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;
    • getNodeDefOrBuilder

      NodeDefOrBuilder getNodeDefOrBuilder(int index)
      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;
    • getRetCount

      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;
    • containsRet

      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;
    • getRet

      Deprecated.
      Use getRetMap() instead.
    • getRetMap

      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;
    • getRetOrDefault

      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;
    • getRetOrThrow

      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;
    • getControlRetCount

      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;
    • containsControlRet

      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;
    • getControlRet

      @Deprecated Map<String,String> getControlRet()
      Deprecated.
      Use getControlRetMap() instead.
    • getControlRetMap

      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;
    • getControlRetOrDefault

      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;
    • getControlRetOrThrow

      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;