@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.AllocatorMemoryUsed)) { return super.equals(obj); } org.tensorflow.framework.AllocatorMemoryUsed other = (org.tensorflow.framework.AllocatorMemoryUsed) obj; boolean result = true; result = result && getAllocatorName() .equals(other.getAllocatorName()); result = result && (getTotalBytes() == other.getTotalBytes()); result = result && (getPeakBytes() == other.getPeakBytes()); result = result && (getLiveBytes() == other.getLiveBytes()); result = result && getAllocationRecordsList() .equals(other.getAllocationRecordsList()); result = result && (getAllocatorBytesInUse() == other.getAllocatorBytesInUse()); 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) + ALLOCATOR_NAME_FIELD_NUMBER; hash = (53 * hash) + getAllocatorName().hashCode(); hash = (37 * hash) + TOTAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getTotalBytes()); hash = (37 * hash) + PEAK_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getPeakBytes()); hash = (37 * hash) + LIVE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getLiveBytes()); if (getAllocationRecordsCount() > 0) { hash = (37 * hash) + ALLOCATION_RECORDS_FIELD_NUMBER; hash = (53 * hash) + getAllocationRecordsList().hashCode(); } hash = (37 * hash) + ALLOCATOR_BYTES_IN_USE_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getAllocatorBytesInUse()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
setPeakBytes(other.getPeakBytes()); if (other.getLiveBytes() != 0L) { setLiveBytes(other.getLiveBytes());
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOCATOR_NAME_FIELD_NUMBER; hash = (53 * hash) + getAllocatorName().hashCode(); hash = (37 * hash) + TOTAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalBytes()); hash = (37 * hash) + PEAK_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPeakBytes()); hash = (37 * hash) + LIVE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLiveBytes()); if (getAllocationRecordsCount() > 0) { hash = (37 * hash) + ALLOCATION_RECORDS_FIELD_NUMBER; hash = (53 * hash) + getAllocationRecordsList().hashCode(); } hash = (37 * hash) + ALLOCATOR_BYTES_IN_USE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAllocatorBytesInUse()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.AllocatorMemoryUsed)) { return super.equals(obj); } org.tensorflow.framework.AllocatorMemoryUsed other = (org.tensorflow.framework.AllocatorMemoryUsed) obj; boolean result = true; result = result && getAllocatorName() .equals(other.getAllocatorName()); result = result && (getTotalBytes() == other.getTotalBytes()); result = result && (getPeakBytes() == other.getPeakBytes()); result = result && (getLiveBytes() == other.getLiveBytes()); result = result && getAllocationRecordsList() .equals(other.getAllocationRecordsList()); result = result && (getAllocatorBytesInUse() == other.getAllocatorBytesInUse()); result = result && unknownFields.equals(other.unknownFields); return result; }
setPeakBytes(other.getPeakBytes()); if (other.getLiveBytes() != 0L) { setLiveBytes(other.getLiveBytes());