/** * <pre> * Compatibility versions of the graph. See core/public/version.h for version * history. The GraphDef version is distinct from the TensorFlow version, and * each release of TensorFlow will support a range of GraphDef versions. * </pre> * * <code>.tensorflow.VersionDef versions = 4;</code> */ public org.tensorflow.framework.VersionDefOrBuilder getVersionsOrBuilder() { return getVersions(); }
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < node_.size(); i++) { output.writeMessage(1, node_.get(i)); } if (library_ != null) { output.writeMessage(2, getLibrary()); } if (version_ != 0) { output.writeInt32(3, version_); } if (versions_ != null) { output.writeMessage(4, getVersions()); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < node_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(1, node_.get(i)); } if (library_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(2, getLibrary()); } if (version_ != 0) { size += com.github.os72.protobuf351.CodedOutputStream .computeInt32Size(3, version_); } if (versions_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(4, getVersions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNodeCount() > 0) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); } if (hasVersions()) { hash = (37 * hash) + VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getVersions().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); if (hasLibrary()) { hash = (37 * hash) + LIBRARY_FIELD_NUMBER; hash = (53 * hash) + getLibrary().hashCode(); } 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.GraphDef)) { return super.equals(obj); } org.tensorflow.framework.GraphDef other = (org.tensorflow.framework.GraphDef) obj; boolean result = true; result = result && getNodeList() .equals(other.getNodeList()); result = result && (hasVersions() == other.hasVersions()); if (hasVersions()) { result = result && getVersions() .equals(other.getVersions()); } result = result && (getVersion() == other.getVersion()); result = result && (hasLibrary() == other.hasLibrary()); if (hasLibrary()) { result = result && getLibrary() .equals(other.getLibrary()); } result = result && unknownFields.equals(other.unknownFields); return result; }
mergeVersions(other.getVersions());
/** * <pre> * Compatibility versions of the graph. See core/public/version.h for version * history. The GraphDef version is distinct from the TensorFlow version, and * each release of TensorFlow will support a range of GraphDef versions. * </pre> * * <code>.tensorflow.VersionDef versions = 4;</code> */ public org.tensorflow.framework.VersionDefOrBuilder getVersionsOrBuilder() { return getVersions(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < node_.size(); i++) { output.writeMessage(1, node_.get(i)); } if (library_ != null) { output.writeMessage(2, getLibrary()); } if (version_ != 0) { output.writeInt32(3, version_); } if (versions_ != null) { output.writeMessage(4, getVersions()); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < node_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, node_.get(i)); } if (library_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLibrary()); } if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, version_); } if (versions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getVersions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNodeCount() > 0) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); } if (hasVersions()) { hash = (37 * hash) + VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getVersions().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); if (hasLibrary()) { hash = (37 * hash) + LIBRARY_FIELD_NUMBER; hash = (53 * hash) + getLibrary().hashCode(); } 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.GraphDef)) { return super.equals(obj); } org.tensorflow.framework.GraphDef other = (org.tensorflow.framework.GraphDef) obj; boolean result = true; result = result && getNodeList() .equals(other.getNodeList()); result = result && (hasVersions() == other.hasVersions()); if (hasVersions()) { result = result && getVersions() .equals(other.getVersions()); } result = result && (getVersion() == other.getVersion()); result = result && (hasLibrary() == other.hasLibrary()); if (hasLibrary()) { result = result && getLibrary() .equals(other.getLibrary()); } result = result && unknownFields.equals(other.unknownFields); return result; }
mergeVersions(other.getVersions());