public static final class OnnxMl.SparseTensorProto extends com.google.protobuf.GeneratedMessageV3 implements OnnxMl.SparseTensorProtoOrBuilder
A serialized sparse-tensor valueProtobuf type
onnx.SparseTensorProto| Modifier and Type | Class and Description |
|---|---|
static class |
OnnxMl.SparseTensorProto.Builder
A serialized sparse-tensor value
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DIMS_FIELD_NUMBER |
static int |
INDICES_FIELD_NUMBER |
static com.google.protobuf.Parser<OnnxMl.SparseTensorProto> |
PARSER
Deprecated.
|
static int |
VALUES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static OnnxMl.SparseTensorProto |
getDefaultInstance() |
OnnxMl.SparseTensorProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getDims(int index)
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
int |
getDimsCount()
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
java.util.List<java.lang.Long> |
getDimsList()
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
OnnxMl.TensorProto |
getIndices()
The indices of the non-default values, which may be stored in one of two formats.
|
OnnxMl.TensorProtoOrBuilder |
getIndicesOrBuilder()
The indices of the non-default values, which may be stored in one of two formats.
|
com.google.protobuf.Parser<OnnxMl.SparseTensorProto> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
OnnxMl.TensorProto |
getValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
OnnxMl.TensorProtoOrBuilder |
getValuesOrBuilder()
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
int |
hashCode() |
boolean |
hasIndices()
The indices of the non-default values, which may be stored in one of two formats.
|
boolean |
hasValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OnnxMl.SparseTensorProto.Builder |
newBuilder() |
static OnnxMl.SparseTensorProto.Builder |
newBuilder(OnnxMl.SparseTensorProto prototype) |
OnnxMl.SparseTensorProto.Builder |
newBuilderForType() |
protected OnnxMl.SparseTensorProto.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OnnxMl.SparseTensorProto |
parseDelimitedFrom(java.io.InputStream input) |
static OnnxMl.SparseTensorProto |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.SparseTensorProto |
parseFrom(byte[] data) |
static OnnxMl.SparseTensorProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.SparseTensorProto |
parseFrom(java.nio.ByteBuffer data) |
static OnnxMl.SparseTensorProto |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.SparseTensorProto |
parseFrom(com.google.protobuf.ByteString data) |
static OnnxMl.SparseTensorProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.SparseTensorProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OnnxMl.SparseTensorProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OnnxMl.SparseTensorProto |
parseFrom(java.io.InputStream input) |
static OnnxMl.SparseTensorProto |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OnnxMl.SparseTensorProto> |
parser() |
OnnxMl.SparseTensorProto.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int VALUES_FIELD_NUMBER
public static final int INDICES_FIELD_NUMBER
public static final int DIMS_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<OnnxMl.SparseTensorProto> PARSER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;hasValues in interface OnnxMl.SparseTensorProtoOrBuilderpublic OnnxMl.TensorProto getValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;getValues in interface OnnxMl.SparseTensorProtoOrBuilderpublic OnnxMl.TensorProtoOrBuilder getValuesOrBuilder()
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;getValuesOrBuilder in interface OnnxMl.SparseTensorProtoOrBuilderpublic boolean hasIndices()
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;hasIndices in interface OnnxMl.SparseTensorProtoOrBuilderpublic OnnxMl.TensorProto getIndices()
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;getIndices in interface OnnxMl.SparseTensorProtoOrBuilderpublic OnnxMl.TensorProtoOrBuilder getIndicesOrBuilder()
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;getIndicesOrBuilder in interface OnnxMl.SparseTensorProtoOrBuilderpublic java.util.List<java.lang.Long> getDimsList()
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;getDimsList in interface OnnxMl.SparseTensorProtoOrBuilderpublic int getDimsCount()
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;getDimsCount in interface OnnxMl.SparseTensorProtoOrBuilderpublic long getDims(int index)
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;getDims in interface OnnxMl.SparseTensorProtoOrBuilderindex - The index of the element to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OnnxMl.SparseTensorProto parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.SparseTensorProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.SparseTensorProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.SparseTensorProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.SparseTensorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.SparseTensorProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OnnxMl.SparseTensorProto parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static OnnxMl.SparseTensorProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static OnnxMl.SparseTensorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static OnnxMl.SparseTensorProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static OnnxMl.SparseTensorProto parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static OnnxMl.SparseTensorProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic OnnxMl.SparseTensorProto.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OnnxMl.SparseTensorProto.Builder newBuilder()
public static OnnxMl.SparseTensorProto.Builder newBuilder(OnnxMl.SparseTensorProto prototype)
public OnnxMl.SparseTensorProto.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OnnxMl.SparseTensorProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OnnxMl.SparseTensorProto getDefaultInstance()
public static com.google.protobuf.Parser<OnnxMl.SparseTensorProto> parser()
public com.google.protobuf.Parser<OnnxMl.SparseTensorProto> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OnnxMl.SparseTensorProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder