Interface OpDef.ArgDefOrBuilder

All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
All Known Implementing Classes:
OpDef.ArgDef, OpDef.ArgDef.Builder
Enclosing class:
OpDef

public static interface OpDef.ArgDefOrBuilder extends MessageOrBuilder
  • Method Details

    • getName

      String getName()
      Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
      
      string name = 1;
      Returns:
      The name.
    • getNameBytes

      ByteString getNameBytes()
      Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
      
      string name = 1;
      Returns:
      The bytes for name.
    • getDescription

      String getDescription()
      Human readable description.
      
      string description = 2;
      Returns:
      The description.
    • getDescriptionBytes

      ByteString getDescriptionBytes()
      Human readable description.
      
      string description = 2;
      Returns:
      The bytes for description.
    • getTypeValue

      int getTypeValue()
      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;
      Returns:
      The enum numeric value on the wire for type.
    • getType

      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;
      Returns:
      The type.
    • getTypeAttr

      String getTypeAttr()
      if specified, attr must have type "type"
      
      string type_attr = 4;
      Returns:
      The typeAttr.
    • getTypeAttrBytes

      ByteString getTypeAttrBytes()
      if specified, attr must have type "type"
      
      string type_attr = 4;
      Returns:
      The bytes for typeAttr.
    • getNumberAttr

      String getNumberAttr()
      if specified, attr must have type "int"
      
      string number_attr = 5;
      Returns:
      The numberAttr.
    • getNumberAttrBytes

      ByteString getNumberAttrBytes()
      if specified, attr must have type "int"
      
      string number_attr = 5;
      Returns:
      The bytes for numberAttr.
    • getTypeListAttr

      String getTypeListAttr()
      If specified, attr must have type "list(type)", and none of
      type, type_attr, and number_attr may be specified.
      
      string type_list_attr = 6;
      Returns:
      The typeListAttr.
    • getTypeListAttrBytes

      ByteString getTypeListAttrBytes()
      If specified, attr must have type "list(type)", and none of
      type, type_attr, and number_attr may be specified.
      
      string type_list_attr = 6;
      Returns:
      The bytes for typeListAttr.
    • getHandleDataList

      The handle data for resource inputs.
      
      repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
    • getHandleData

      ResourceHandleProto.DtypeAndShape getHandleData(int index)
      The handle data for resource inputs.
      
      repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
    • getHandleDataCount

      int getHandleDataCount()
      The handle data for resource inputs.
      
      repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
    • getHandleDataOrBuilderList

      List<? extends ResourceHandleProto.DtypeAndShapeOrBuilder> getHandleDataOrBuilderList()
      The handle data for resource inputs.
      
      repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
    • getHandleDataOrBuilder

      ResourceHandleProto.DtypeAndShapeOrBuilder getHandleDataOrBuilder(int index)
      The handle data for resource inputs.
      
      repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7;
    • getIsRef

      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;
      Returns:
      The isRef.
    • hasExperimentalFullType

      boolean hasExperimentalFullType()
      Experimental. Full type declaration for this argument.
      The full type specification combines type, type_attr, type_list_attr,
      etc. into a unified representation.
      This declaration may contain non-concrete types (for example,
      Tensor<TypeVar<'T'>> is a valid type declaration.
      Note: this is a transient field. The long-term aim is to represent the
      entire OpDef as a single type: a callable. In that context, this field is
      just the type of a single argument.
      
      .tensorflow.FullTypeDef experimental_full_type = 17;
      Returns:
      Whether the experimentalFullType field is set.
    • getExperimentalFullType

      FullTypeDef getExperimentalFullType()
      Experimental. Full type declaration for this argument.
      The full type specification combines type, type_attr, type_list_attr,
      etc. into a unified representation.
      This declaration may contain non-concrete types (for example,
      Tensor<TypeVar<'T'>> is a valid type declaration.
      Note: this is a transient field. The long-term aim is to represent the
      entire OpDef as a single type: a callable. In that context, this field is
      just the type of a single argument.
      
      .tensorflow.FullTypeDef experimental_full_type = 17;
      Returns:
      The experimentalFullType.
    • getExperimentalFullTypeOrBuilder

      FullTypeDefOrBuilder getExperimentalFullTypeOrBuilder()
      Experimental. Full type declaration for this argument.
      The full type specification combines type, type_attr, type_list_attr,
      etc. into a unified representation.
      This declaration may contain non-concrete types (for example,
      Tensor<TypeVar<'T'>> is a valid type declaration.
      Note: this is a transient field. The long-term aim is to represent the
      entire OpDef as a single type: a callable. In that context, this field is
      just the type of a single argument.
      
      .tensorflow.FullTypeDef experimental_full_type = 17;