public static enum OnnxMl.AttributeProto.AttributeType extends Enum<OnnxMl.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 enum
onnx.AttributeProto.AttributeType| Enum Constant and Description |
|---|
FLOAT
FLOAT = 1; |
FLOATS
FLOATS = 6; |
GRAPH
GRAPH = 5; |
GRAPHS
GRAPHS = 10; |
INT
INT = 2; |
INTS
INTS = 7; |
STRING
STRING = 3; |
STRINGS
STRINGS = 8; |
TENSOR
TENSOR = 4; |
TENSORS
TENSORS = 9; |
UNDEFINED
UNDEFINED = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
FLOAT_VALUE
FLOAT = 1; |
static int |
FLOATS_VALUE
FLOATS = 6; |
static int |
GRAPH_VALUE
GRAPH = 5; |
static int |
GRAPHS_VALUE
GRAPHS = 10; |
static int |
INT_VALUE
INT = 2; |
static int |
INTS_VALUE
INTS = 7; |
static int |
STRING_VALUE
STRING = 3; |
static int |
STRINGS_VALUE
STRINGS = 8; |
static int |
TENSOR_VALUE
TENSOR = 4; |
static int |
TENSORS_VALUE
TENSORS = 9; |
static int |
UNDEFINED_VALUE
UNDEFINED = 0; |
| Modifier and Type | Method and Description |
|---|---|
static OnnxMl.AttributeProto.AttributeType |
forNumber(int value) |
static org.nd4j.shade.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
org.nd4j.shade.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static org.nd4j.shade.protobuf.Internal.EnumLiteMap<OnnxMl.AttributeProto.AttributeType> |
internalGetValueMap() |
static OnnxMl.AttributeProto.AttributeType |
valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) |
static OnnxMl.AttributeProto.AttributeType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OnnxMl.AttributeProto.AttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OnnxMl.AttributeProto.AttributeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnnxMl.AttributeProto.AttributeType UNDEFINED
UNDEFINED = 0;public static final OnnxMl.AttributeProto.AttributeType FLOAT
FLOAT = 1;public static final OnnxMl.AttributeProto.AttributeType INT
INT = 2;public static final OnnxMl.AttributeProto.AttributeType STRING
STRING = 3;public static final OnnxMl.AttributeProto.AttributeType TENSOR
TENSOR = 4;public static final OnnxMl.AttributeProto.AttributeType GRAPH
GRAPH = 5;public static final OnnxMl.AttributeProto.AttributeType FLOATS
FLOATS = 6;public static final OnnxMl.AttributeProto.AttributeType INTS
INTS = 7;public static final OnnxMl.AttributeProto.AttributeType STRINGS
STRINGS = 8;public static final OnnxMl.AttributeProto.AttributeType TENSORS
TENSORS = 9;public static final OnnxMl.AttributeProto.AttributeType GRAPHS
GRAPHS = 10;public static final OnnxMl.AttributeProto.AttributeType UNRECOGNIZED
public static final int UNDEFINED_VALUE
UNDEFINED = 0;public static final int FLOAT_VALUE
FLOAT = 1;public static final int INT_VALUE
INT = 2;public static final int STRING_VALUE
STRING = 3;public static final int TENSOR_VALUE
TENSOR = 4;public static final int GRAPH_VALUE
GRAPH = 5;public static final int FLOATS_VALUE
FLOATS = 6;public static final int INTS_VALUE
INTS = 7;public static final int STRINGS_VALUE
STRINGS = 8;public static final int TENSORS_VALUE
TENSORS = 9;public static final int GRAPHS_VALUE
GRAPHS = 10;public static OnnxMl.AttributeProto.AttributeType[] values()
for (OnnxMl.AttributeProto.AttributeType c : OnnxMl.AttributeProto.AttributeType.values()) System.out.println(c);
public static OnnxMl.AttributeProto.AttributeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface org.nd4j.shade.protobuf.Internal.EnumLitegetNumber in interface org.nd4j.shade.protobuf.ProtocolMessageEnum@Deprecated public static OnnxMl.AttributeProto.AttributeType valueOf(int value)
forNumber(int) instead.public static OnnxMl.AttributeProto.AttributeType forNumber(int value)
public static org.nd4j.shade.protobuf.Internal.EnumLiteMap<OnnxMl.AttributeProto.AttributeType> internalGetValueMap()
public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface org.nd4j.shade.protobuf.ProtocolMessageEnumpublic final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface org.nd4j.shade.protobuf.ProtocolMessageEnumpublic static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static OnnxMl.AttributeProto.AttributeType valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021. All rights reserved.