Package tensorflow
Enum Struct.TypeSpecProto.TypeSpecClass
java.lang.Object
java.lang.Enum<Struct.TypeSpecProto.TypeSpecClass>
tensorflow.Struct.TypeSpecProto.TypeSpecClass
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<Struct.TypeSpecProto.TypeSpecClass>,java.lang.constant.Constable
- Enclosing class:
- Struct.TypeSpecProto
public static enum Struct.TypeSpecProto.TypeSpecClass extends java.lang.Enum<Struct.TypeSpecProto.TypeSpecClass> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
tensorflow.TypeSpecProto.TypeSpecClass-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA_DATASET_SPECtf.data.DatasetSpecDATA_ITERATOR_SPECIteratorSpec from data/ops/iterator_ops.pyINDEXED_SLICES_SPECtf.IndexedSlicesSpecOPTIONAL_SPECtf.OptionalSpecPER_REPLICA_SPECPerReplicaSpec from distribute/values.pyRAGGED_TENSOR_SPECtf.RaggedTensorSpecSPARSE_TENSOR_SPECtf.SparseTensorSpecTENSOR_ARRAY_SPECtf.TensorArraySpecUNKNOWNUNKNOWN = 0;UNRECOGNIZEDVARIABLE_SPECtf.VariableSpec -
Field Summary
Fields Modifier and Type Field Description static intDATA_DATASET_SPEC_VALUEtf.data.DatasetSpecstatic intDATA_ITERATOR_SPEC_VALUEIteratorSpec from data/ops/iterator_ops.pystatic intINDEXED_SLICES_SPEC_VALUEtf.IndexedSlicesSpecstatic intOPTIONAL_SPEC_VALUEtf.OptionalSpecstatic intPER_REPLICA_SPEC_VALUEPerReplicaSpec from distribute/values.pystatic intRAGGED_TENSOR_SPEC_VALUEtf.RaggedTensorSpecstatic intSPARSE_TENSOR_SPEC_VALUEtf.SparseTensorSpecstatic intTENSOR_ARRAY_SPEC_VALUEtf.TensorArraySpecstatic intUNKNOWN_VALUEUNKNOWN = 0;static intVARIABLE_SPEC_VALUEtf.VariableSpec -
Method Summary
Modifier and Type Method Description static Struct.TypeSpecProto.TypeSpecClassforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Struct.TypeSpecProto.TypeSpecClass>internalGetValueMap()static Struct.TypeSpecProto.TypeSpecClassvalueOf(int value)Deprecated.static Struct.TypeSpecProto.TypeSpecClassvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Struct.TypeSpecProto.TypeSpecClassvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Struct.TypeSpecProto.TypeSpecClass[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
UNKNOWN = 0; -
SPARSE_TENSOR_SPEC
tf.SparseTensorSpec
SPARSE_TENSOR_SPEC = 1; -
INDEXED_SLICES_SPEC
tf.IndexedSlicesSpec
INDEXED_SLICES_SPEC = 2; -
RAGGED_TENSOR_SPEC
tf.RaggedTensorSpec
RAGGED_TENSOR_SPEC = 3; -
TENSOR_ARRAY_SPEC
tf.TensorArraySpec
TENSOR_ARRAY_SPEC = 4; -
DATA_DATASET_SPEC
tf.data.DatasetSpec
DATA_DATASET_SPEC = 5; -
DATA_ITERATOR_SPEC
IteratorSpec from data/ops/iterator_ops.py
DATA_ITERATOR_SPEC = 6; -
OPTIONAL_SPEC
tf.OptionalSpec
OPTIONAL_SPEC = 7; -
PER_REPLICA_SPEC
PerReplicaSpec from distribute/values.py
PER_REPLICA_SPEC = 8; -
VARIABLE_SPEC
tf.VariableSpec
VARIABLE_SPEC = 9; -
UNRECOGNIZED
-
-
Field Details
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEUNKNOWN = 0;- See Also:
- Constant Field Values
-
SPARSE_TENSOR_SPEC_VALUE
public static final int SPARSE_TENSOR_SPEC_VALUEtf.SparseTensorSpec
SPARSE_TENSOR_SPEC = 1;- See Also:
- Constant Field Values
-
INDEXED_SLICES_SPEC_VALUE
public static final int INDEXED_SLICES_SPEC_VALUEtf.IndexedSlicesSpec
INDEXED_SLICES_SPEC = 2;- See Also:
- Constant Field Values
-
RAGGED_TENSOR_SPEC_VALUE
public static final int RAGGED_TENSOR_SPEC_VALUEtf.RaggedTensorSpec
RAGGED_TENSOR_SPEC = 3;- See Also:
- Constant Field Values
-
TENSOR_ARRAY_SPEC_VALUE
public static final int TENSOR_ARRAY_SPEC_VALUEtf.TensorArraySpec
TENSOR_ARRAY_SPEC = 4;- See Also:
- Constant Field Values
-
DATA_DATASET_SPEC_VALUE
public static final int DATA_DATASET_SPEC_VALUEtf.data.DatasetSpec
DATA_DATASET_SPEC = 5;- See Also:
- Constant Field Values
-
DATA_ITERATOR_SPEC_VALUE
public static final int DATA_ITERATOR_SPEC_VALUEIteratorSpec from data/ops/iterator_ops.py
DATA_ITERATOR_SPEC = 6;- See Also:
- Constant Field Values
-
OPTIONAL_SPEC_VALUE
public static final int OPTIONAL_SPEC_VALUEtf.OptionalSpec
OPTIONAL_SPEC = 7;- See Also:
- Constant Field Values
-
PER_REPLICA_SPEC_VALUE
public static final int PER_REPLICA_SPEC_VALUEPerReplicaSpec from distribute/values.py
PER_REPLICA_SPEC = 8;- See Also:
- Constant Field Values
-
VARIABLE_SPEC_VALUE
public static final int VARIABLE_SPEC_VALUEtf.VariableSpec
VARIABLE_SPEC = 9;- See Also:
- Constant Field Values
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Struct.TypeSpecProto.TypeSpecClass> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Struct.TypeSpecProto.TypeSpecClass valueOf(com.google.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-