Package onnx
Enum Onnx.AttributeProto.AttributeType
- java.lang.Object
-
- java.lang.Enum<Onnx.AttributeProto.AttributeType>
-
- onnx.Onnx.AttributeProto.AttributeType
-
- All Implemented Interfaces:
Serializable,Comparable<Onnx.AttributeProto.AttributeType>,org.nd4j.shade.protobuf.Internal.EnumLite,org.nd4j.shade.protobuf.ProtocolMessageEnum
- Enclosing class:
- Onnx.AttributeProto
public static enum Onnx.AttributeProto.AttributeType extends Enum<Onnx.AttributeProto.AttributeType> implements org.nd4j.shade.protobuf.ProtocolMessageEnum
Note: this enum is structurally identical to the OpSchema::AttrType enum defined in schema.h. If you rev one, you likely need to rev the other.
Protobuf enumonnx.AttributeProto.AttributeType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLOATFLOAT = 1;FLOATSFLOATS = 6;GRAPHGRAPH = 5;GRAPHSGRAPHS = 10;INTINT = 2;INTSINTS = 7;SPARSE_TENSORSPARSE_TENSOR = 11;SPARSE_TENSORSSPARSE_TENSORS = 12;STRINGSTRING = 3;STRINGSSTRINGS = 8;TENSORTENSOR = 4;TENSORSTENSORS = 9;TYPE_PROTOTYPE_PROTO = 13;TYPE_PROTOSTYPE_PROTOS = 14;UNDEFINEDUNDEFINED = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intFLOAT_VALUEFLOAT = 1;static intFLOATS_VALUEFLOATS = 6;static intGRAPH_VALUEGRAPH = 5;static intGRAPHS_VALUEGRAPHS = 10;static intINT_VALUEINT = 2;static intINTS_VALUEINTS = 7;static intSPARSE_TENSOR_VALUESPARSE_TENSOR = 11;static intSPARSE_TENSORS_VALUESPARSE_TENSORS = 12;static intSTRING_VALUESTRING = 3;static intSTRINGS_VALUESTRINGS = 8;static intTENSOR_VALUETENSOR = 4;static intTENSORS_VALUETENSORS = 9;static intTYPE_PROTO_VALUETYPE_PROTO = 13;static intTYPE_PROTOS_VALUETYPE_PROTOS = 14;static intUNDEFINED_VALUEUNDEFINED = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Onnx.AttributeProto.AttributeTypeforNumber(int value)static org.nd4j.shade.protobuf.Descriptors.EnumDescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static org.nd4j.shade.protobuf.Internal.EnumLiteMap<Onnx.AttributeProto.AttributeType>internalGetValueMap()static Onnx.AttributeProto.AttributeTypevalueOf(int value)Deprecated.static Onnx.AttributeProto.AttributeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Onnx.AttributeProto.AttributeTypevalueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Onnx.AttributeProto.AttributeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final Onnx.AttributeProto.AttributeType UNDEFINED
UNDEFINED = 0;
-
FLOAT
public static final Onnx.AttributeProto.AttributeType FLOAT
FLOAT = 1;
-
INT
public static final Onnx.AttributeProto.AttributeType INT
INT = 2;
-
STRING
public static final Onnx.AttributeProto.AttributeType STRING
STRING = 3;
-
TENSOR
public static final Onnx.AttributeProto.AttributeType TENSOR
TENSOR = 4;
-
GRAPH
public static final Onnx.AttributeProto.AttributeType GRAPH
GRAPH = 5;
-
SPARSE_TENSOR
public static final Onnx.AttributeProto.AttributeType SPARSE_TENSOR
SPARSE_TENSOR = 11;
-
TYPE_PROTO
public static final Onnx.AttributeProto.AttributeType TYPE_PROTO
TYPE_PROTO = 13;
-
FLOATS
public static final Onnx.AttributeProto.AttributeType FLOATS
FLOATS = 6;
-
INTS
public static final Onnx.AttributeProto.AttributeType INTS
INTS = 7;
-
STRINGS
public static final Onnx.AttributeProto.AttributeType STRINGS
STRINGS = 8;
-
TENSORS
public static final Onnx.AttributeProto.AttributeType TENSORS
TENSORS = 9;
-
GRAPHS
public static final Onnx.AttributeProto.AttributeType GRAPHS
GRAPHS = 10;
-
SPARSE_TENSORS
public static final Onnx.AttributeProto.AttributeType SPARSE_TENSORS
SPARSE_TENSORS = 12;
-
TYPE_PROTOS
public static final Onnx.AttributeProto.AttributeType TYPE_PROTOS
TYPE_PROTOS = 14;
-
UNRECOGNIZED
public static final Onnx.AttributeProto.AttributeType UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_VALUE
public static final int UNDEFINED_VALUE
UNDEFINED = 0;- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
FLOAT = 1;- See Also:
- Constant Field Values
-
INT_VALUE
public static final int INT_VALUE
INT = 2;- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
STRING = 3;- See Also:
- Constant Field Values
-
TENSOR_VALUE
public static final int TENSOR_VALUE
TENSOR = 4;- See Also:
- Constant Field Values
-
GRAPH_VALUE
public static final int GRAPH_VALUE
GRAPH = 5;- See Also:
- Constant Field Values
-
SPARSE_TENSOR_VALUE
public static final int SPARSE_TENSOR_VALUE
SPARSE_TENSOR = 11;- See Also:
- Constant Field Values
-
TYPE_PROTO_VALUE
public static final int TYPE_PROTO_VALUE
TYPE_PROTO = 13;- See Also:
- Constant Field Values
-
FLOATS_VALUE
public static final int FLOATS_VALUE
FLOATS = 6;- See Also:
- Constant Field Values
-
INTS_VALUE
public static final int INTS_VALUE
INTS = 7;- See Also:
- Constant Field Values
-
STRINGS_VALUE
public static final int STRINGS_VALUE
STRINGS = 8;- See Also:
- Constant Field Values
-
TENSORS_VALUE
public static final int TENSORS_VALUE
TENSORS = 9;- See Also:
- Constant Field Values
-
GRAPHS_VALUE
public static final int GRAPHS_VALUE
GRAPHS = 10;- See Also:
- Constant Field Values
-
SPARSE_TENSORS_VALUE
public static final int SPARSE_TENSORS_VALUE
SPARSE_TENSORS = 12;- See Also:
- Constant Field Values
-
TYPE_PROTOS_VALUE
public static final int TYPE_PROTOS_VALUE
TYPE_PROTOS = 14;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Onnx.AttributeProto.AttributeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Onnx.AttributeProto.AttributeType c : Onnx.AttributeProto.AttributeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Onnx.AttributeProto.AttributeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfaceorg.nd4j.shade.protobuf.Internal.EnumLite- Specified by:
getNumberin interfaceorg.nd4j.shade.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Onnx.AttributeProto.AttributeType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static Onnx.AttributeProto.AttributeType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static org.nd4j.shade.protobuf.Internal.EnumLiteMap<Onnx.AttributeProto.AttributeType> internalGetValueMap()
-
getValueDescriptor
public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfaceorg.nd4j.shade.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Onnx.AttributeProto.AttributeType valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-