Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Shape of the tensor. TODO(touts): sort out the 0-rank issues.
*
*
* .tensorflow.TensorShapeProto tensor_shape = 2;
*/
@java.lang.Override
public org.tensorflow.framework.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() {
return getTensorShape();
}
public static final int VERSION_NUMBER_FIELD_NUMBER = 3;
private int versionNumber_;
/**
*
* Version number.
* In version 0, if the "repeated xxx" representations contain only one
* element, that element is repeated to fill the shape. This makes it easy
* to represent a constant Tensor with a single value.
*
*
* int32 version_number = 3;
* @return The versionNumber.
*/
@java.lang.Override
public int getVersionNumber() {
return versionNumber_;
}
public static final int TENSOR_CONTENT_FIELD_NUMBER = 4;
private org.nd4j.shade.protobuf.ByteString tensorContent_;
/**
*
* Serialized raw tensor content from either Tensor::AsProtoTensorContent or
* memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
* can be used for all tensor types. The purpose of this representation is to
* reduce serialization overhead during RPC call by avoiding serialization of
* many repeated small items.
*
*
* bytes tensor_content = 4;
* @return The tensorContent.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString getTensorContent() {
return tensorContent_;
}
public static final int HALF_VAL_FIELD_NUMBER = 13;
private org.nd4j.shade.protobuf.Internal.IntList halfVal_;
/**
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated int32 half_val = 13 [packed = true];
* @return A list containing the halfVal.
*/
@java.lang.Override
public java.util.List
getHalfValList() {
return halfVal_;
}
/**
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated int32 half_val = 13 [packed = true];
* @return The count of halfVal.
*/
public int getHalfValCount() {
return halfVal_.size();
}
/**
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated int32 half_val = 13 [packed = true];
* @param index The index of the element to return.
* @return The halfVal at the given index.
*/
public int getHalfVal(int index) {
return halfVal_.getInt(index);
}
private int halfValMemoizedSerializedSize = -1;
public static final int FLOAT_VAL_FIELD_NUMBER = 5;
private org.nd4j.shade.protobuf.Internal.FloatList floatVal_;
/**
*
* DT_FLOAT.
*
*
* repeated float float_val = 5 [packed = true];
* @return A list containing the floatVal.
*/
@java.lang.Override
public java.util.List
getFloatValList() {
return floatVal_;
}
/**
*
* DT_FLOAT.
*
*
* repeated float float_val = 5 [packed = true];
* @return The count of floatVal.
*/
public int getFloatValCount() {
return floatVal_.size();
}
/**
*
* DT_FLOAT.
*
*
* repeated float float_val = 5 [packed = true];
* @param index The index of the element to return.
* @return The floatVal at the given index.
*/
public float getFloatVal(int index) {
return floatVal_.getFloat(index);
}
private int floatValMemoizedSerializedSize = -1;
public static final int DOUBLE_VAL_FIELD_NUMBER = 6;
private org.nd4j.shade.protobuf.Internal.DoubleList doubleVal_;
/**
*
* DT_DOUBLE.
*
*
* repeated double double_val = 6 [packed = true];
* @return A list containing the doubleVal.
*/
@java.lang.Override
public java.util.List
getDoubleValList() {
return doubleVal_;
}
/**
*
* DT_DOUBLE.
*
*
* repeated double double_val = 6 [packed = true];
* @return The count of doubleVal.
*/
public int getDoubleValCount() {
return doubleVal_.size();
}
/**
*
* DT_DOUBLE.
*
*
* repeated double double_val = 6 [packed = true];
* @param index The index of the element to return.
* @return The doubleVal at the given index.
*/
public double getDoubleVal(int index) {
return doubleVal_.getDouble(index);
}
private int doubleValMemoizedSerializedSize = -1;
public static final int INT_VAL_FIELD_NUMBER = 7;
private org.nd4j.shade.protobuf.Internal.IntList intVal_;
/**
*
* DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
*
*
* repeated int32 int_val = 7 [packed = true];
* @return A list containing the intVal.
*/
@java.lang.Override
public java.util.List
getIntValList() {
return intVal_;
}
/**
*
* DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
*
*
* repeated int32 int_val = 7 [packed = true];
* @return The count of intVal.
*/
public int getIntValCount() {
return intVal_.size();
}
/**
*
* DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
*
*
* repeated int32 int_val = 7 [packed = true];
* @param index The index of the element to return.
* @return The intVal at the given index.
*/
public int getIntVal(int index) {
return intVal_.getInt(index);
}
private int intValMemoizedSerializedSize = -1;
public static final int STRING_VAL_FIELD_NUMBER = 8;
private java.util.List stringVal_;
/**
*
* DT_STRING
*
*
* repeated bytes string_val = 8;
* @return A list containing the stringVal.
*/
@java.lang.Override
public java.util.List
getStringValList() {
return stringVal_;
}
/**
*
* DT_STRING
*
*
* repeated bytes string_val = 8;
* @return The count of stringVal.
*/
public int getStringValCount() {
return stringVal_.size();
}
/**
*
* DT_STRING
*
*
* repeated bytes string_val = 8;
* @param index The index of the element to return.
* @return The stringVal at the given index.
*/
public org.nd4j.shade.protobuf.ByteString getStringVal(int index) {
return stringVal_.get(index);
}
public static final int SCOMPLEX_VAL_FIELD_NUMBER = 9;
private org.nd4j.shade.protobuf.Internal.FloatList scomplexVal_;
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated float scomplex_val = 9 [packed = true];
* @return A list containing the scomplexVal.
*/
@java.lang.Override
public java.util.List
getScomplexValList() {
return scomplexVal_;
}
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated float scomplex_val = 9 [packed = true];
* @return The count of scomplexVal.
*/
public int getScomplexValCount() {
return scomplexVal_.size();
}
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated float scomplex_val = 9 [packed = true];
* @param index The index of the element to return.
* @return The scomplexVal at the given index.
*/
public float getScomplexVal(int index) {
return scomplexVal_.getFloat(index);
}
private int scomplexValMemoizedSerializedSize = -1;
public static final int INT64_VAL_FIELD_NUMBER = 10;
private org.nd4j.shade.protobuf.Internal.LongList int64Val_;
/**
*
* DT_INT64
*
*
* repeated int64 int64_val = 10 [packed = true];
* @return A list containing the int64Val.
*/
@java.lang.Override
public java.util.List
getInt64ValList() {
return int64Val_;
}
/**
*
* DT_INT64
*
*
* repeated int64 int64_val = 10 [packed = true];
* @return The count of int64Val.
*/
public int getInt64ValCount() {
return int64Val_.size();
}
/**
*
* DT_INT64
*
*
* repeated int64 int64_val = 10 [packed = true];
* @param index The index of the element to return.
* @return The int64Val at the given index.
*/
public long getInt64Val(int index) {
return int64Val_.getLong(index);
}
private int int64ValMemoizedSerializedSize = -1;
public static final int BOOL_VAL_FIELD_NUMBER = 11;
private org.nd4j.shade.protobuf.Internal.BooleanList boolVal_;
/**
*
* DT_BOOL
*
*
* repeated bool bool_val = 11 [packed = true];
* @return A list containing the boolVal.
*/
@java.lang.Override
public java.util.List
getBoolValList() {
return boolVal_;
}
/**
*
* DT_BOOL
*
*
* repeated bool bool_val = 11 [packed = true];
* @return The count of boolVal.
*/
public int getBoolValCount() {
return boolVal_.size();
}
/**
*
* DT_BOOL
*
*
* repeated bool bool_val = 11 [packed = true];
* @param index The index of the element to return.
* @return The boolVal at the given index.
*/
public boolean getBoolVal(int index) {
return boolVal_.getBoolean(index);
}
private int boolValMemoizedSerializedSize = -1;
public static final int DCOMPLEX_VAL_FIELD_NUMBER = 12;
private org.nd4j.shade.protobuf.Internal.DoubleList dcomplexVal_;
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated double dcomplex_val = 12 [packed = true];
* @return A list containing the dcomplexVal.
*/
@java.lang.Override
public java.util.List
getDcomplexValList() {
return dcomplexVal_;
}
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated double dcomplex_val = 12 [packed = true];
* @return The count of dcomplexVal.
*/
public int getDcomplexValCount() {
return dcomplexVal_.size();
}
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated double dcomplex_val = 12 [packed = true];
* @param index The index of the element to return.
* @return The dcomplexVal at the given index.
*/
public double getDcomplexVal(int index) {
return dcomplexVal_.getDouble(index);
}
private int dcomplexValMemoizedSerializedSize = -1;
public static final int RESOURCE_HANDLE_VAL_FIELD_NUMBER = 14;
private java.util.List resourceHandleVal_;
/**
*
*
* repeated .tensorflow.VariantTensorDataProto variant_val = 15;
*/
@java.lang.Override
public org.tensorflow.framework.VariantTensorDataProtoOrBuilder getVariantValOrBuilder(
int index) {
return variantVal_.get(index);
}
public static final int UINT32_VAL_FIELD_NUMBER = 16;
private org.nd4j.shade.protobuf.Internal.IntList uint32Val_;
/**
*
* DT_UINT32
*
*
* repeated uint32 uint32_val = 16 [packed = true];
* @return A list containing the uint32Val.
*/
@java.lang.Override
public java.util.List
getUint32ValList() {
return uint32Val_;
}
/**
*
* DT_UINT32
*
*
* repeated uint32 uint32_val = 16 [packed = true];
* @return The count of uint32Val.
*/
public int getUint32ValCount() {
return uint32Val_.size();
}
/**
*
* DT_UINT32
*
*
* repeated uint32 uint32_val = 16 [packed = true];
* @param index The index of the element to return.
* @return The uint32Val at the given index.
*/
public int getUint32Val(int index) {
return uint32Val_.getInt(index);
}
private int uint32ValMemoizedSerializedSize = -1;
public static final int UINT64_VAL_FIELD_NUMBER = 17;
private org.nd4j.shade.protobuf.Internal.LongList uint64Val_;
/**
*
* DT_UINT64
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @return A list containing the uint64Val.
*/
@java.lang.Override
public java.util.List
getUint64ValList() {
return uint64Val_;
}
/**
*
* DT_UINT64
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @return The count of uint64Val.
*/
public int getUint64ValCount() {
return uint64Val_.size();
}
/**
*
* DT_UINT64
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @param index The index of the element to return.
* @return The uint64Val at the given index.
*/
public long getUint64Val(int index) {
return uint64Val_.getLong(index);
}
private int uint64ValMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
output.writeEnum(1, dtype_);
}
if (tensorShape_ != null) {
output.writeMessage(2, getTensorShape());
}
if (versionNumber_ != 0) {
output.writeInt32(3, versionNumber_);
}
if (!tensorContent_.isEmpty()) {
output.writeBytes(4, tensorContent_);
}
if (getFloatValList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(floatValMemoizedSerializedSize);
}
for (int i = 0; i < floatVal_.size(); i++) {
output.writeFloatNoTag(floatVal_.getFloat(i));
}
if (getDoubleValList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(doubleValMemoizedSerializedSize);
}
for (int i = 0; i < doubleVal_.size(); i++) {
output.writeDoubleNoTag(doubleVal_.getDouble(i));
}
if (getIntValList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(intValMemoizedSerializedSize);
}
for (int i = 0; i < intVal_.size(); i++) {
output.writeInt32NoTag(intVal_.getInt(i));
}
for (int i = 0; i < stringVal_.size(); i++) {
output.writeBytes(8, stringVal_.get(i));
}
if (getScomplexValList().size() > 0) {
output.writeUInt32NoTag(74);
output.writeUInt32NoTag(scomplexValMemoizedSerializedSize);
}
for (int i = 0; i < scomplexVal_.size(); i++) {
output.writeFloatNoTag(scomplexVal_.getFloat(i));
}
if (getInt64ValList().size() > 0) {
output.writeUInt32NoTag(82);
output.writeUInt32NoTag(int64ValMemoizedSerializedSize);
}
for (int i = 0; i < int64Val_.size(); i++) {
output.writeInt64NoTag(int64Val_.getLong(i));
}
if (getBoolValList().size() > 0) {
output.writeUInt32NoTag(90);
output.writeUInt32NoTag(boolValMemoizedSerializedSize);
}
for (int i = 0; i < boolVal_.size(); i++) {
output.writeBoolNoTag(boolVal_.getBoolean(i));
}
if (getDcomplexValList().size() > 0) {
output.writeUInt32NoTag(98);
output.writeUInt32NoTag(dcomplexValMemoizedSerializedSize);
}
for (int i = 0; i < dcomplexVal_.size(); i++) {
output.writeDoubleNoTag(dcomplexVal_.getDouble(i));
}
if (getHalfValList().size() > 0) {
output.writeUInt32NoTag(106);
output.writeUInt32NoTag(halfValMemoizedSerializedSize);
}
for (int i = 0; i < halfVal_.size(); i++) {
output.writeInt32NoTag(halfVal_.getInt(i));
}
for (int i = 0; i < resourceHandleVal_.size(); i++) {
output.writeMessage(14, resourceHandleVal_.get(i));
}
for (int i = 0; i < variantVal_.size(); i++) {
output.writeMessage(15, variantVal_.get(i));
}
if (getUint32ValList().size() > 0) {
output.writeUInt32NoTag(130);
output.writeUInt32NoTag(uint32ValMemoizedSerializedSize);
}
for (int i = 0; i < uint32Val_.size(); i++) {
output.writeUInt32NoTag(uint32Val_.getInt(i));
}
if (getUint64ValList().size() > 0) {
output.writeUInt32NoTag(138);
output.writeUInt32NoTag(uint64ValMemoizedSerializedSize);
}
for (int i = 0; i < uint64Val_.size(); i++) {
output.writeUInt64NoTag(uint64Val_.getLong(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeEnumSize(1, dtype_);
}
if (tensorShape_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, getTensorShape());
}
if (versionNumber_ != 0) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32Size(3, versionNumber_);
}
if (!tensorContent_.isEmpty()) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeBytesSize(4, tensorContent_);
}
{
int dataSize = 0;
dataSize = 4 * getFloatValList().size();
size += dataSize;
if (!getFloatValList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
floatValMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getDoubleValList().size();
size += dataSize;
if (!getDoubleValList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
doubleValMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < intVal_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(intVal_.getInt(i));
}
size += dataSize;
if (!getIntValList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
intValMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < stringVal_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeBytesSizeNoTag(stringVal_.get(i));
}
size += dataSize;
size += 1 * getStringValList().size();
}
{
int dataSize = 0;
dataSize = 4 * getScomplexValList().size();
size += dataSize;
if (!getScomplexValList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
scomplexValMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < int64Val_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64SizeNoTag(int64Val_.getLong(i));
}
size += dataSize;
if (!getInt64ValList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
int64ValMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 1 * getBoolValList().size();
size += dataSize;
if (!getBoolValList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
boolValMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getDcomplexValList().size();
size += dataSize;
if (!getDcomplexValList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
dcomplexValMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < halfVal_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(halfVal_.getInt(i));
}
size += dataSize;
if (!getHalfValList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
halfValMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < resourceHandleVal_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(14, resourceHandleVal_.get(i));
}
for (int i = 0; i < variantVal_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(15, variantVal_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < uint32Val_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(uint32Val_.getInt(i));
}
size += dataSize;
if (!getUint32ValList().isEmpty()) {
size += 2;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
uint32ValMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < uint64Val_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(uint64Val_.getLong(i));
}
size += dataSize;
if (!getUint64ValList().isEmpty()) {
size += 2;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
uint64ValMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.TensorProto)) {
return super.equals(obj);
}
org.tensorflow.framework.TensorProto other = (org.tensorflow.framework.TensorProto) obj;
if (dtype_ != other.dtype_) return false;
if (hasTensorShape() != other.hasTensorShape()) return false;
if (hasTensorShape()) {
if (!getTensorShape()
.equals(other.getTensorShape())) return false;
}
if (getVersionNumber()
!= other.getVersionNumber()) return false;
if (!getTensorContent()
.equals(other.getTensorContent())) return false;
if (!getHalfValList()
.equals(other.getHalfValList())) return false;
if (!getFloatValList()
.equals(other.getFloatValList())) return false;
if (!getDoubleValList()
.equals(other.getDoubleValList())) return false;
if (!getIntValList()
.equals(other.getIntValList())) return false;
if (!getStringValList()
.equals(other.getStringValList())) return false;
if (!getScomplexValList()
.equals(other.getScomplexValList())) return false;
if (!getInt64ValList()
.equals(other.getInt64ValList())) return false;
if (!getBoolValList()
.equals(other.getBoolValList())) return false;
if (!getDcomplexValList()
.equals(other.getDcomplexValList())) return false;
if (!getResourceHandleValList()
.equals(other.getResourceHandleValList())) return false;
if (!getVariantValList()
.equals(other.getVariantValList())) return false;
if (!getUint32ValList()
.equals(other.getUint32ValList())) return false;
if (!getUint64ValList()
.equals(other.getUint64ValList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + dtype_;
if (hasTensorShape()) {
hash = (37 * hash) + TENSOR_SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getTensorShape().hashCode();
}
hash = (37 * hash) + VERSION_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getVersionNumber();
hash = (37 * hash) + TENSOR_CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getTensorContent().hashCode();
if (getHalfValCount() > 0) {
hash = (37 * hash) + HALF_VAL_FIELD_NUMBER;
hash = (53 * hash) + getHalfValList().hashCode();
}
if (getFloatValCount() > 0) {
hash = (37 * hash) + FLOAT_VAL_FIELD_NUMBER;
hash = (53 * hash) + getFloatValList().hashCode();
}
if (getDoubleValCount() > 0) {
hash = (37 * hash) + DOUBLE_VAL_FIELD_NUMBER;
hash = (53 * hash) + getDoubleValList().hashCode();
}
if (getIntValCount() > 0) {
hash = (37 * hash) + INT_VAL_FIELD_NUMBER;
hash = (53 * hash) + getIntValList().hashCode();
}
if (getStringValCount() > 0) {
hash = (37 * hash) + STRING_VAL_FIELD_NUMBER;
hash = (53 * hash) + getStringValList().hashCode();
}
if (getScomplexValCount() > 0) {
hash = (37 * hash) + SCOMPLEX_VAL_FIELD_NUMBER;
hash = (53 * hash) + getScomplexValList().hashCode();
}
if (getInt64ValCount() > 0) {
hash = (37 * hash) + INT64_VAL_FIELD_NUMBER;
hash = (53 * hash) + getInt64ValList().hashCode();
}
if (getBoolValCount() > 0) {
hash = (37 * hash) + BOOL_VAL_FIELD_NUMBER;
hash = (53 * hash) + getBoolValList().hashCode();
}
if (getDcomplexValCount() > 0) {
hash = (37 * hash) + DCOMPLEX_VAL_FIELD_NUMBER;
hash = (53 * hash) + getDcomplexValList().hashCode();
}
if (getResourceHandleValCount() > 0) {
hash = (37 * hash) + RESOURCE_HANDLE_VAL_FIELD_NUMBER;
hash = (53 * hash) + getResourceHandleValList().hashCode();
}
if (getVariantValCount() > 0) {
hash = (37 * hash) + VARIANT_VAL_FIELD_NUMBER;
hash = (53 * hash) + getVariantValList().hashCode();
}
if (getUint32ValCount() > 0) {
hash = (37 * hash) + UINT32_VAL_FIELD_NUMBER;
hash = (53 * hash) + getUint32ValList().hashCode();
}
if (getUint64ValCount() > 0) {
hash = (37 * hash) + UINT64_VAL_FIELD_NUMBER;
hash = (53 * hash) + getUint64ValList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.TensorProto parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.TensorProto parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.TensorProto parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.TensorProto parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.TensorProto parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.TensorProto parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.TensorProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.TensorProto parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.TensorProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.TensorProto parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.TensorProto parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.TensorProto parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.TensorProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Version number.
* In version 0, if the "repeated xxx" representations contain only one
* element, that element is repeated to fill the shape. This makes it easy
* to represent a constant Tensor with a single value.
*
*
* int32 version_number = 3;
* @return The versionNumber.
*/
@java.lang.Override
public int getVersionNumber() {
return versionNumber_;
}
/**
*
* Version number.
* In version 0, if the "repeated xxx" representations contain only one
* element, that element is repeated to fill the shape. This makes it easy
* to represent a constant Tensor with a single value.
*
*
* int32 version_number = 3;
* @param value The versionNumber to set.
* @return This builder for chaining.
*/
public Builder setVersionNumber(int value) {
versionNumber_ = value;
onChanged();
return this;
}
/**
*
* Version number.
* In version 0, if the "repeated xxx" representations contain only one
* element, that element is repeated to fill the shape. This makes it easy
* to represent a constant Tensor with a single value.
*
* Serialized raw tensor content from either Tensor::AsProtoTensorContent or
* memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
* can be used for all tensor types. The purpose of this representation is to
* reduce serialization overhead during RPC call by avoiding serialization of
* many repeated small items.
*
* Serialized raw tensor content from either Tensor::AsProtoTensorContent or
* memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
* can be used for all tensor types. The purpose of this representation is to
* reduce serialization overhead during RPC call by avoiding serialization of
* many repeated small items.
*
*
* bytes tensor_content = 4;
* @param value The tensorContent to set.
* @return This builder for chaining.
*/
public Builder setTensorContent(org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
tensorContent_ = value;
onChanged();
return this;
}
/**
*
* Serialized raw tensor content from either Tensor::AsProtoTensorContent or
* memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
* can be used for all tensor types. The purpose of this representation is to
* reduce serialization overhead during RPC call by avoiding serialization of
* many repeated small items.
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated int32 half_val = 13 [packed = true];
* @return A list containing the halfVal.
*/
public java.util.List
getHalfValList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(halfVal_) : halfVal_;
}
/**
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated int32 half_val = 13 [packed = true];
* @return The count of halfVal.
*/
public int getHalfValCount() {
return halfVal_.size();
}
/**
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated int32 half_val = 13 [packed = true];
* @param index The index of the element to return.
* @return The halfVal at the given index.
*/
public int getHalfVal(int index) {
return halfVal_.getInt(index);
}
/**
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated int32 half_val = 13 [packed = true];
* @param index The index to set the value at.
* @param value The halfVal to set.
* @return This builder for chaining.
*/
public Builder setHalfVal(
int index, int value) {
ensureHalfValIsMutable();
halfVal_.setInt(index, value);
onChanged();
return this;
}
/**
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated int32 half_val = 13 [packed = true];
* @param value The halfVal to add.
* @return This builder for chaining.
*/
public Builder addHalfVal(int value) {
ensureHalfValIsMutable();
halfVal_.addInt(value);
onChanged();
return this;
}
/**
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated int32 half_val = 13 [packed = true];
* @param values The halfVal to add.
* @return This builder for chaining.
*/
public Builder addAllHalfVal(
java.lang.Iterable values) {
ensureHalfValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, halfVal_);
onChanged();
return this;
}
/**
*
* DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
* have some pointless zero padding for each value here.
*
*
* repeated float float_val = 5 [packed = true];
* @return A list containing the floatVal.
*/
public java.util.List
getFloatValList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(floatVal_) : floatVal_;
}
/**
*
* DT_FLOAT.
*
*
* repeated float float_val = 5 [packed = true];
* @return The count of floatVal.
*/
public int getFloatValCount() {
return floatVal_.size();
}
/**
*
* DT_FLOAT.
*
*
* repeated float float_val = 5 [packed = true];
* @param index The index of the element to return.
* @return The floatVal at the given index.
*/
public float getFloatVal(int index) {
return floatVal_.getFloat(index);
}
/**
*
* DT_FLOAT.
*
*
* repeated float float_val = 5 [packed = true];
* @param index The index to set the value at.
* @param value The floatVal to set.
* @return This builder for chaining.
*/
public Builder setFloatVal(
int index, float value) {
ensureFloatValIsMutable();
floatVal_.setFloat(index, value);
onChanged();
return this;
}
/**
*
* DT_FLOAT.
*
*
* repeated float float_val = 5 [packed = true];
* @param value The floatVal to add.
* @return This builder for chaining.
*/
public Builder addFloatVal(float value) {
ensureFloatValIsMutable();
floatVal_.addFloat(value);
onChanged();
return this;
}
/**
*
* DT_FLOAT.
*
*
* repeated float float_val = 5 [packed = true];
* @param values The floatVal to add.
* @return This builder for chaining.
*/
public Builder addAllFloatVal(
java.lang.Iterable values) {
ensureFloatValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, floatVal_);
onChanged();
return this;
}
/**
*
*
* repeated double double_val = 6 [packed = true];
* @return A list containing the doubleVal.
*/
public java.util.List
getDoubleValList() {
return ((bitField0_ & 0x00000004) != 0) ?
java.util.Collections.unmodifiableList(doubleVal_) : doubleVal_;
}
/**
*
* DT_DOUBLE.
*
*
* repeated double double_val = 6 [packed = true];
* @return The count of doubleVal.
*/
public int getDoubleValCount() {
return doubleVal_.size();
}
/**
*
* DT_DOUBLE.
*
*
* repeated double double_val = 6 [packed = true];
* @param index The index of the element to return.
* @return The doubleVal at the given index.
*/
public double getDoubleVal(int index) {
return doubleVal_.getDouble(index);
}
/**
*
* DT_DOUBLE.
*
*
* repeated double double_val = 6 [packed = true];
* @param index The index to set the value at.
* @param value The doubleVal to set.
* @return This builder for chaining.
*/
public Builder setDoubleVal(
int index, double value) {
ensureDoubleValIsMutable();
doubleVal_.setDouble(index, value);
onChanged();
return this;
}
/**
*
* DT_DOUBLE.
*
*
* repeated double double_val = 6 [packed = true];
* @param value The doubleVal to add.
* @return This builder for chaining.
*/
public Builder addDoubleVal(double value) {
ensureDoubleValIsMutable();
doubleVal_.addDouble(value);
onChanged();
return this;
}
/**
*
* DT_DOUBLE.
*
*
* repeated double double_val = 6 [packed = true];
* @param values The doubleVal to add.
* @return This builder for chaining.
*/
public Builder addAllDoubleVal(
java.lang.Iterable values) {
ensureDoubleValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, doubleVal_);
onChanged();
return this;
}
/**
*
*
* repeated int32 int_val = 7 [packed = true];
* @return A list containing the intVal.
*/
public java.util.List
getIntValList() {
return ((bitField0_ & 0x00000008) != 0) ?
java.util.Collections.unmodifiableList(intVal_) : intVal_;
}
/**
*
* DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
*
*
* repeated int32 int_val = 7 [packed = true];
* @return The count of intVal.
*/
public int getIntValCount() {
return intVal_.size();
}
/**
*
* DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
*
*
* repeated int32 int_val = 7 [packed = true];
* @param index The index of the element to return.
* @return The intVal at the given index.
*/
public int getIntVal(int index) {
return intVal_.getInt(index);
}
/**
*
* DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
*
*
* repeated int32 int_val = 7 [packed = true];
* @param index The index to set the value at.
* @param value The intVal to set.
* @return This builder for chaining.
*/
public Builder setIntVal(
int index, int value) {
ensureIntValIsMutable();
intVal_.setInt(index, value);
onChanged();
return this;
}
/**
*
* DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
*
*
* repeated int32 int_val = 7 [packed = true];
* @param value The intVal to add.
* @return This builder for chaining.
*/
public Builder addIntVal(int value) {
ensureIntValIsMutable();
intVal_.addInt(value);
onChanged();
return this;
}
/**
*
* DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
*
*
* repeated int32 int_val = 7 [packed = true];
* @param values The intVal to add.
* @return This builder for chaining.
*/
public Builder addAllIntVal(
java.lang.Iterable values) {
ensureIntValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, intVal_);
onChanged();
return this;
}
/**
*
*
* repeated bytes string_val = 8;
* @return A list containing the stringVal.
*/
public java.util.List
getStringValList() {
return ((bitField0_ & 0x00000010) != 0) ?
java.util.Collections.unmodifiableList(stringVal_) : stringVal_;
}
/**
*
* DT_STRING
*
*
* repeated bytes string_val = 8;
* @return The count of stringVal.
*/
public int getStringValCount() {
return stringVal_.size();
}
/**
*
* DT_STRING
*
*
* repeated bytes string_val = 8;
* @param index The index of the element to return.
* @return The stringVal at the given index.
*/
public org.nd4j.shade.protobuf.ByteString getStringVal(int index) {
return stringVal_.get(index);
}
/**
*
* DT_STRING
*
*
* repeated bytes string_val = 8;
* @param index The index to set the value at.
* @param value The stringVal to set.
* @return This builder for chaining.
*/
public Builder setStringVal(
int index, org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringValIsMutable();
stringVal_.set(index, value);
onChanged();
return this;
}
/**
*
* DT_STRING
*
*
* repeated bytes string_val = 8;
* @param value The stringVal to add.
* @return This builder for chaining.
*/
public Builder addStringVal(org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringValIsMutable();
stringVal_.add(value);
onChanged();
return this;
}
/**
*
* DT_STRING
*
*
* repeated bytes string_val = 8;
* @param values The stringVal to add.
* @return This builder for chaining.
*/
public Builder addAllStringVal(
java.lang.Iterable values) {
ensureStringValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, stringVal_);
onChanged();
return this;
}
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated float scomplex_val = 9 [packed = true];
* @return A list containing the scomplexVal.
*/
public java.util.List
getScomplexValList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(scomplexVal_) : scomplexVal_;
}
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated float scomplex_val = 9 [packed = true];
* @return The count of scomplexVal.
*/
public int getScomplexValCount() {
return scomplexVal_.size();
}
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated float scomplex_val = 9 [packed = true];
* @param index The index of the element to return.
* @return The scomplexVal at the given index.
*/
public float getScomplexVal(int index) {
return scomplexVal_.getFloat(index);
}
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated float scomplex_val = 9 [packed = true];
* @param index The index to set the value at.
* @param value The scomplexVal to set.
* @return This builder for chaining.
*/
public Builder setScomplexVal(
int index, float value) {
ensureScomplexValIsMutable();
scomplexVal_.setFloat(index, value);
onChanged();
return this;
}
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated float scomplex_val = 9 [packed = true];
* @param value The scomplexVal to add.
* @return This builder for chaining.
*/
public Builder addScomplexVal(float value) {
ensureScomplexValIsMutable();
scomplexVal_.addFloat(value);
onChanged();
return this;
}
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated float scomplex_val = 9 [packed = true];
* @param values The scomplexVal to add.
* @return This builder for chaining.
*/
public Builder addAllScomplexVal(
java.lang.Iterable values) {
ensureScomplexValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, scomplexVal_);
onChanged();
return this;
}
/**
*
* DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
* and imaginary parts of i-th single precision complex.
*
*
* repeated int64 int64_val = 10 [packed = true];
* @return A list containing the int64Val.
*/
public java.util.List
getInt64ValList() {
return ((bitField0_ & 0x00000040) != 0) ?
java.util.Collections.unmodifiableList(int64Val_) : int64Val_;
}
/**
*
* DT_INT64
*
*
* repeated int64 int64_val = 10 [packed = true];
* @return The count of int64Val.
*/
public int getInt64ValCount() {
return int64Val_.size();
}
/**
*
* DT_INT64
*
*
* repeated int64 int64_val = 10 [packed = true];
* @param index The index of the element to return.
* @return The int64Val at the given index.
*/
public long getInt64Val(int index) {
return int64Val_.getLong(index);
}
/**
*
* DT_INT64
*
*
* repeated int64 int64_val = 10 [packed = true];
* @param index The index to set the value at.
* @param value The int64Val to set.
* @return This builder for chaining.
*/
public Builder setInt64Val(
int index, long value) {
ensureInt64ValIsMutable();
int64Val_.setLong(index, value);
onChanged();
return this;
}
/**
*
* DT_INT64
*
*
* repeated int64 int64_val = 10 [packed = true];
* @param value The int64Val to add.
* @return This builder for chaining.
*/
public Builder addInt64Val(long value) {
ensureInt64ValIsMutable();
int64Val_.addLong(value);
onChanged();
return this;
}
/**
*
* DT_INT64
*
*
* repeated int64 int64_val = 10 [packed = true];
* @param values The int64Val to add.
* @return This builder for chaining.
*/
public Builder addAllInt64Val(
java.lang.Iterable values) {
ensureInt64ValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, int64Val_);
onChanged();
return this;
}
/**
*
*
* repeated bool bool_val = 11 [packed = true];
* @return A list containing the boolVal.
*/
public java.util.List
getBoolValList() {
return ((bitField0_ & 0x00000080) != 0) ?
java.util.Collections.unmodifiableList(boolVal_) : boolVal_;
}
/**
*
* DT_BOOL
*
*
* repeated bool bool_val = 11 [packed = true];
* @return The count of boolVal.
*/
public int getBoolValCount() {
return boolVal_.size();
}
/**
*
* DT_BOOL
*
*
* repeated bool bool_val = 11 [packed = true];
* @param index The index of the element to return.
* @return The boolVal at the given index.
*/
public boolean getBoolVal(int index) {
return boolVal_.getBoolean(index);
}
/**
*
* DT_BOOL
*
*
* repeated bool bool_val = 11 [packed = true];
* @param index The index to set the value at.
* @param value The boolVal to set.
* @return This builder for chaining.
*/
public Builder setBoolVal(
int index, boolean value) {
ensureBoolValIsMutable();
boolVal_.setBoolean(index, value);
onChanged();
return this;
}
/**
*
* DT_BOOL
*
*
* repeated bool bool_val = 11 [packed = true];
* @param value The boolVal to add.
* @return This builder for chaining.
*/
public Builder addBoolVal(boolean value) {
ensureBoolValIsMutable();
boolVal_.addBoolean(value);
onChanged();
return this;
}
/**
*
* DT_BOOL
*
*
* repeated bool bool_val = 11 [packed = true];
* @param values The boolVal to add.
* @return This builder for chaining.
*/
public Builder addAllBoolVal(
java.lang.Iterable values) {
ensureBoolValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, boolVal_);
onChanged();
return this;
}
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated double dcomplex_val = 12 [packed = true];
* @return A list containing the dcomplexVal.
*/
public java.util.List
getDcomplexValList() {
return ((bitField0_ & 0x00000100) != 0) ?
java.util.Collections.unmodifiableList(dcomplexVal_) : dcomplexVal_;
}
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated double dcomplex_val = 12 [packed = true];
* @return The count of dcomplexVal.
*/
public int getDcomplexValCount() {
return dcomplexVal_.size();
}
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated double dcomplex_val = 12 [packed = true];
* @param index The index of the element to return.
* @return The dcomplexVal at the given index.
*/
public double getDcomplexVal(int index) {
return dcomplexVal_.getDouble(index);
}
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated double dcomplex_val = 12 [packed = true];
* @param index The index to set the value at.
* @param value The dcomplexVal to set.
* @return This builder for chaining.
*/
public Builder setDcomplexVal(
int index, double value) {
ensureDcomplexValIsMutable();
dcomplexVal_.setDouble(index, value);
onChanged();
return this;
}
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated double dcomplex_val = 12 [packed = true];
* @param value The dcomplexVal to add.
* @return This builder for chaining.
*/
public Builder addDcomplexVal(double value) {
ensureDcomplexValIsMutable();
dcomplexVal_.addDouble(value);
onChanged();
return this;
}
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated double dcomplex_val = 12 [packed = true];
* @param values The dcomplexVal to add.
* @return This builder for chaining.
*/
public Builder addAllDcomplexVal(
java.lang.Iterable values) {
ensureDcomplexValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, dcomplexVal_);
onChanged();
return this;
}
/**
*
* DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
* and imaginary parts of i-th double precision complex.
*
*
* repeated uint32 uint32_val = 16 [packed = true];
* @return A list containing the uint32Val.
*/
public java.util.List
getUint32ValList() {
return ((bitField0_ & 0x00000800) != 0) ?
java.util.Collections.unmodifiableList(uint32Val_) : uint32Val_;
}
/**
*
* DT_UINT32
*
*
* repeated uint32 uint32_val = 16 [packed = true];
* @return The count of uint32Val.
*/
public int getUint32ValCount() {
return uint32Val_.size();
}
/**
*
* DT_UINT32
*
*
* repeated uint32 uint32_val = 16 [packed = true];
* @param index The index of the element to return.
* @return The uint32Val at the given index.
*/
public int getUint32Val(int index) {
return uint32Val_.getInt(index);
}
/**
*
* DT_UINT32
*
*
* repeated uint32 uint32_val = 16 [packed = true];
* @param index The index to set the value at.
* @param value The uint32Val to set.
* @return This builder for chaining.
*/
public Builder setUint32Val(
int index, int value) {
ensureUint32ValIsMutable();
uint32Val_.setInt(index, value);
onChanged();
return this;
}
/**
*
* DT_UINT32
*
*
* repeated uint32 uint32_val = 16 [packed = true];
* @param value The uint32Val to add.
* @return This builder for chaining.
*/
public Builder addUint32Val(int value) {
ensureUint32ValIsMutable();
uint32Val_.addInt(value);
onChanged();
return this;
}
/**
*
* DT_UINT32
*
*
* repeated uint32 uint32_val = 16 [packed = true];
* @param values The uint32Val to add.
* @return This builder for chaining.
*/
public Builder addAllUint32Val(
java.lang.Iterable values) {
ensureUint32ValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, uint32Val_);
onChanged();
return this;
}
/**
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @return A list containing the uint64Val.
*/
public java.util.List
getUint64ValList() {
return ((bitField0_ & 0x00001000) != 0) ?
java.util.Collections.unmodifiableList(uint64Val_) : uint64Val_;
}
/**
*
* DT_UINT64
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @return The count of uint64Val.
*/
public int getUint64ValCount() {
return uint64Val_.size();
}
/**
*
* DT_UINT64
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @param index The index of the element to return.
* @return The uint64Val at the given index.
*/
public long getUint64Val(int index) {
return uint64Val_.getLong(index);
}
/**
*
* DT_UINT64
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @param index The index to set the value at.
* @param value The uint64Val to set.
* @return This builder for chaining.
*/
public Builder setUint64Val(
int index, long value) {
ensureUint64ValIsMutable();
uint64Val_.setLong(index, value);
onChanged();
return this;
}
/**
*
* DT_UINT64
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @param value The uint64Val to add.
* @return This builder for chaining.
*/
public Builder addUint64Val(long value) {
ensureUint64ValIsMutable();
uint64Val_.addLong(value);
onChanged();
return this;
}
/**
*
* DT_UINT64
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @param values The uint64Val to add.
* @return This builder for chaining.
*/
public Builder addAllUint64Val(
java.lang.Iterable values) {
ensureUint64ValIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, uint64Val_);
onChanged();
return this;
}
/**
*
* DT_UINT64
*
*
* repeated uint64 uint64_val = 17 [packed = true];
* @return This builder for chaining.
*/
public Builder clearUint64Val() {
uint64Val_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.TensorProto)
}
// @@protoc_insertion_point(class_scope:tensorflow.TensorProto)
private static final org.tensorflow.framework.TensorProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.TensorProto();
}
public static org.tensorflow.framework.TensorProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public TensorProto parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new TensorProto(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.framework.TensorProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}