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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/step_stats.proto
package org.tensorflow.framework;
/**
*
* For memory tracking.
*
*
* Protobuf type {@code tensorflow.MemoryStats}
*/
public final class MemoryStats extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.MemoryStats)
MemoryStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use MemoryStats.newBuilder() to construct.
private MemoryStats(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MemoryStats() {
tempMemorySize_ = 0L;
persistentMemorySize_ = 0L;
persistentTensorAllocIds_ = java.util.Collections.emptyList();
deviceTempMemorySize_ = 0L;
devicePersistentMemorySize_ = 0L;
devicePersistentTensorAllocIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MemoryStats(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
tempMemorySize_ = input.readInt64();
break;
}
case 16: {
deviceTempMemorySize_ = input.readInt64();
break;
}
case 24: {
persistentMemorySize_ = input.readInt64();
break;
}
case 32: {
devicePersistentMemorySize_ = input.readInt64();
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
persistentTensorAllocIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
persistentTensorAllocIds_.add(input.readInt64());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
persistentTensorAllocIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
persistentTensorAllocIds_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
devicePersistentTensorAllocIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
devicePersistentTensorAllocIds_.add(input.readInt64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
devicePersistentTensorAllocIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
devicePersistentTensorAllocIds_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
persistentTensorAllocIds_ = java.util.Collections.unmodifiableList(persistentTensorAllocIds_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
devicePersistentTensorAllocIds_ = java.util.Collections.unmodifiableList(devicePersistentTensorAllocIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.StepStatsProtos.internal_static_tensorflow_MemoryStats_descriptor;
}
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.StepStatsProtos.internal_static_tensorflow_MemoryStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.MemoryStats.class, org.tensorflow.framework.MemoryStats.Builder.class);
}
private int bitField0_;
public static final int TEMP_MEMORY_SIZE_FIELD_NUMBER = 1;
private long tempMemorySize_;
/**
* int64 temp_memory_size = 1;
*/
public long getTempMemorySize() {
return tempMemorySize_;
}
public static final int PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 3;
private long persistentMemorySize_;
/**
* int64 persistent_memory_size = 3;
*/
public long getPersistentMemorySize() {
return persistentMemorySize_;
}
public static final int PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER = 5;
private java.util.List persistentTensorAllocIds_;
/**
* repeated int64 persistent_tensor_alloc_ids = 5;
*/
public java.util.List
getPersistentTensorAllocIdsList() {
return persistentTensorAllocIds_;
}
/**
* repeated int64 persistent_tensor_alloc_ids = 5;
*/
public int getPersistentTensorAllocIdsCount() {
return persistentTensorAllocIds_.size();
}
/**
* repeated int64 persistent_tensor_alloc_ids = 5;
*/
public long getPersistentTensorAllocIds(int index) {
return persistentTensorAllocIds_.get(index);
}
private int persistentTensorAllocIdsMemoizedSerializedSize = -1;
public static final int DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER = 2;
private long deviceTempMemorySize_;
/**
* int64 device_temp_memory_size = 2 [deprecated = true];
*/
@java.lang.Deprecated public long getDeviceTempMemorySize() {
return deviceTempMemorySize_;
}
public static final int DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 4;
private long devicePersistentMemorySize_;
/**
* int64 device_persistent_memory_size = 4 [deprecated = true];
*/
@java.lang.Deprecated public long getDevicePersistentMemorySize() {
return devicePersistentMemorySize_;
}
public static final int DEVICE_PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER = 6;
private java.util.List devicePersistentTensorAllocIds_;
/**
* repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getDevicePersistentTensorAllocIdsList() {
return devicePersistentTensorAllocIds_;
}
/**
* repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
*/
@java.lang.Deprecated public int getDevicePersistentTensorAllocIdsCount() {
return devicePersistentTensorAllocIds_.size();
}
/**
* repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
*/
@java.lang.Deprecated public long getDevicePersistentTensorAllocIds(int index) {
return devicePersistentTensorAllocIds_.get(index);
}
private int devicePersistentTensorAllocIdsMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (tempMemorySize_ != 0L) {
output.writeInt64(1, tempMemorySize_);
}
if (deviceTempMemorySize_ != 0L) {
output.writeInt64(2, deviceTempMemorySize_);
}
if (persistentMemorySize_ != 0L) {
output.writeInt64(3, persistentMemorySize_);
}
if (devicePersistentMemorySize_ != 0L) {
output.writeInt64(4, devicePersistentMemorySize_);
}
if (getPersistentTensorAllocIdsList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(persistentTensorAllocIdsMemoizedSerializedSize);
}
for (int i = 0; i < persistentTensorAllocIds_.size(); i++) {
output.writeInt64NoTag(persistentTensorAllocIds_.get(i));
}
if (getDevicePersistentTensorAllocIdsList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(devicePersistentTensorAllocIdsMemoizedSerializedSize);
}
for (int i = 0; i < devicePersistentTensorAllocIds_.size(); i++) {
output.writeInt64NoTag(devicePersistentTensorAllocIds_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tempMemorySize_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(1, tempMemorySize_);
}
if (deviceTempMemorySize_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(2, deviceTempMemorySize_);
}
if (persistentMemorySize_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(3, persistentMemorySize_);
}
if (devicePersistentMemorySize_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(4, devicePersistentMemorySize_);
}
{
int dataSize = 0;
for (int i = 0; i < persistentTensorAllocIds_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64SizeNoTag(persistentTensorAllocIds_.get(i));
}
size += dataSize;
if (!getPersistentTensorAllocIdsList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
persistentTensorAllocIdsMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < devicePersistentTensorAllocIds_.size(); i++) {
dataSize += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64SizeNoTag(devicePersistentTensorAllocIds_.get(i));
}
size += dataSize;
if (!getDevicePersistentTensorAllocIdsList().isEmpty()) {
size += 1;
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
devicePersistentTensorAllocIdsMemoizedSerializedSize = 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.MemoryStats)) {
return super.equals(obj);
}
org.tensorflow.framework.MemoryStats other = (org.tensorflow.framework.MemoryStats) obj;
boolean result = true;
result = result && (getTempMemorySize()
== other.getTempMemorySize());
result = result && (getPersistentMemorySize()
== other.getPersistentMemorySize());
result = result && getPersistentTensorAllocIdsList()
.equals(other.getPersistentTensorAllocIdsList());
result = result && (getDeviceTempMemorySize()
== other.getDeviceTempMemorySize());
result = result && (getDevicePersistentMemorySize()
== other.getDevicePersistentMemorySize());
result = result && getDevicePersistentTensorAllocIdsList()
.equals(other.getDevicePersistentTensorAllocIdsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TEMP_MEMORY_SIZE_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getTempMemorySize());
hash = (37 * hash) + PERSISTENT_MEMORY_SIZE_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getPersistentMemorySize());
if (getPersistentTensorAllocIdsCount() > 0) {
hash = (37 * hash) + PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER;
hash = (53 * hash) + getPersistentTensorAllocIdsList().hashCode();
}
hash = (37 * hash) + DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getDeviceTempMemorySize());
hash = (37 * hash) + DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getDevicePersistentMemorySize());
if (getDevicePersistentTensorAllocIdsCount() > 0) {
hash = (37 * hash) + DEVICE_PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER;
hash = (53 * hash) + getDevicePersistentTensorAllocIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.MemoryStats parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.MemoryStats 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.MemoryStats parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.MemoryStats 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.MemoryStats parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.MemoryStats 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.MemoryStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.MemoryStats 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.MemoryStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.MemoryStats 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.MemoryStats 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.MemoryStats 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);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.MemoryStats prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*