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.
*
* repeated int32 control_input = 8;
*/
int getControlInput(int index);
}
/**
* Protobuf type {@code tensorflow.CostGraphDef.Node}
*/
public static final class Node extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.Node)
NodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Node.newBuilder() to construct.
private Node(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Node() {
name_ = "";
device_ = "";
id_ = 0;
inputInfo_ = java.util.Collections.emptyList();
outputInfo_ = java.util.Collections.emptyList();
temporaryMemorySize_ = 0L;
hostTempMemorySize_ = 0L;
deviceTempMemorySize_ = 0L;
hostPersistentMemorySize_ = 0L;
devicePersistentMemorySize_ = 0L;
computeCost_ = 0L;
computeTime_ = 0L;
memoryTime_ = 0L;
isFinal_ = false;
controlInput_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Node(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.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 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
device_ = s;
break;
}
case 24: {
id_ = input.readInt32();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
inputInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
inputInfo_.add(
input.readMessage(org.tensorflow.framework.CostGraphDef.Node.InputInfo.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
outputInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
outputInfo_.add(
input.readMessage(org.tensorflow.framework.CostGraphDef.Node.OutputInfo.parser(), extensionRegistry));
break;
}
case 48: {
temporaryMemorySize_ = input.readInt64();
break;
}
case 56: {
isFinal_ = input.readBool();
break;
}
case 64: {
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
controlInput_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
controlInput_.add(input.readInt32());
break;
}
case 66: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000) && input.getBytesUntilLimit() > 0) {
controlInput_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
while (input.getBytesUntilLimit() > 0) {
controlInput_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 72: {
computeCost_ = input.readInt64();
break;
}
case 80: {
hostTempMemorySize_ = input.readInt64();
break;
}
case 88: {
deviceTempMemorySize_ = input.readInt64();
break;
}
case 96: {
hostPersistentMemorySize_ = input.readInt64();
break;
}
case 112: {
computeTime_ = input.readInt64();
break;
}
case 120: {
memoryTime_ = input.readInt64();
break;
}
case 128: {
devicePersistentMemorySize_ = input.readInt64();
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
inputInfo_ = java.util.Collections.unmodifiableList(inputInfo_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
outputInfo_ = java.util.Collections.unmodifiableList(outputInfo_);
}
if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
controlInput_ = java.util.Collections.unmodifiableList(controlInput_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.CostGraphDef.Node.class, org.tensorflow.framework.CostGraphDef.Node.Builder.class);
}
public interface InputInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.Node.InputInfo)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* int32 preceding_node = 1;
*/
int getPrecedingNode();
/**
* int32 preceding_port = 2;
*/
int getPrecedingPort();
}
/**
*
* Inputs of this node. They must be executed before this node can be
* executed. An input is a particular output of another node, specified
* by the node id and the output index.
*
*
* Protobuf type {@code tensorflow.CostGraphDef.Node.InputInfo}
*/
public static final class InputInfo extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.Node.InputInfo)
InputInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use InputInfo.newBuilder() to construct.
private InputInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InputInfo() {
precedingNode_ = 0;
precedingPort_ = 0;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InputInfo(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.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: {
precedingNode_ = input.readInt32();
break;
}
case 16: {
precedingPort_ = input.readInt32();
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.CostGraphDef.Node.InputInfo.class, org.tensorflow.framework.CostGraphDef.Node.InputInfo.Builder.class);
}
public static final int PRECEDING_NODE_FIELD_NUMBER = 1;
private int precedingNode_;
/**
* int32 preceding_node = 1;
*/
public int getPrecedingNode() {
return precedingNode_;
}
public static final int PRECEDING_PORT_FIELD_NUMBER = 2;
private int precedingPort_;
/**
* int32 preceding_port = 2;
*/
public int getPrecedingPort() {
return precedingPort_;
}
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(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (precedingNode_ != 0) {
output.writeInt32(1, precedingNode_);
}
if (precedingPort_ != 0) {
output.writeInt32(2, precedingPort_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (precedingNode_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(1, precedingNode_);
}
if (precedingPort_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(2, precedingPort_);
}
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.CostGraphDef.Node.InputInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.CostGraphDef.Node.InputInfo other = (org.tensorflow.framework.CostGraphDef.Node.InputInfo) obj;
boolean result = true;
result = result && (getPrecedingNode()
== other.getPrecedingNode());
result = result && (getPrecedingPort()
== other.getPrecedingPort());
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) + PRECEDING_NODE_FIELD_NUMBER;
hash = (53 * hash) + getPrecedingNode();
hash = (37 * hash) + PRECEDING_PORT_FIELD_NUMBER;
hash = (53 * hash) + getPrecedingPort();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.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.CostGraphDef.Node.InputInfo 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(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Inputs of this node. They must be executed before this node can be
* executed. An input is a particular output of another node, specified
* by the node id and the output index.
*
*
* Protobuf type {@code tensorflow.CostGraphDef.Node.InputInfo}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.Node.InputInfo)
org.tensorflow.framework.CostGraphDef.Node.InputInfoOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.CostGraphDef.Node.InputInfo.class, org.tensorflow.framework.CostGraphDef.Node.InputInfo.Builder.class);
}
// Construct using org.tensorflow.framework.CostGraphDef.Node.InputInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
precedingNode_ = 0;
precedingPort_ = 0;
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_descriptor;
}
public org.tensorflow.framework.CostGraphDef.Node.InputInfo getDefaultInstanceForType() {
return org.tensorflow.framework.CostGraphDef.Node.InputInfo.getDefaultInstance();
}
public org.tensorflow.framework.CostGraphDef.Node.InputInfo build() {
org.tensorflow.framework.CostGraphDef.Node.InputInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.CostGraphDef.Node.InputInfo buildPartial() {
org.tensorflow.framework.CostGraphDef.Node.InputInfo result = new org.tensorflow.framework.CostGraphDef.Node.InputInfo(this);
result.precedingNode_ = precedingNode_;
result.precedingPort_ = precedingPort_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.CostGraphDef.Node.InputInfo) {
return mergeFrom((org.tensorflow.framework.CostGraphDef.Node.InputInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.CostGraphDef.Node.InputInfo other) {
if (other == org.tensorflow.framework.CostGraphDef.Node.InputInfo.getDefaultInstance()) return this;
if (other.getPrecedingNode() != 0) {
setPrecedingNode(other.getPrecedingNode());
}
if (other.getPrecedingPort() != 0) {
setPrecedingPort(other.getPrecedingPort());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.CostGraphDef.Node.InputInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.CostGraphDef.Node.InputInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int precedingNode_ ;
/**
* int32 preceding_node = 1;
*/
public int getPrecedingNode() {
return precedingNode_;
}
/**
* int32 preceding_node = 1;
*/
public Builder setPrecedingNode(int value) {
precedingNode_ = value;
onChanged();
return this;
}
/**
* int32 preceding_node = 1;
*/
public Builder clearPrecedingNode() {
precedingNode_ = 0;
onChanged();
return this;
}
private int precedingPort_ ;
/**
* int32 preceding_port = 2;
*/
public int getPrecedingPort() {
return precedingPort_;
}
/**
* int32 preceding_port = 2;
*/
public Builder setPrecedingPort(int value) {
precedingPort_ = value;
onChanged();
return this;
}
/**
* int32 preceding_port = 2;
*/
public Builder clearPrecedingPort() {
precedingPort_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.CostGraphDef.Node.InputInfo)
}
// @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node.InputInfo)
private static final org.tensorflow.framework.CostGraphDef.Node.InputInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.CostGraphDef.Node.InputInfo();
}
public static org.tensorflow.framework.CostGraphDef.Node.InputInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public InputInfo parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new InputInfo(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.CostGraphDef.Node.InputInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OutputInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.Node.OutputInfo)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* int64 size = 1;
*/
long getSize();
/**
*
* If >= 0, the output is an alias of an input. Note that an alias input
* may itself be an alias. The algorithm will therefore need to follow
* those pointers.
*
*
* Protobuf type {@code tensorflow.CostGraphDef.Node.OutputInfo}
*/
public static final class OutputInfo extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.Node.OutputInfo)
OutputInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use OutputInfo.newBuilder() to construct.
private OutputInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OutputInfo() {
size_ = 0L;
aliasInputPort_ = 0L;
dtype_ = 0;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OutputInfo(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.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: {
size_ = input.readInt64();
break;
}
case 16: {
aliasInputPort_ = input.readInt64();
break;
}
case 26: {
org.tensorflow.framework.TensorShapeProto.Builder subBuilder = null;
if (shape_ != null) {
subBuilder = shape_.toBuilder();
}
shape_ = input.readMessage(org.tensorflow.framework.TensorShapeProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shape_);
shape_ = subBuilder.buildPartial();
}
break;
}
case 32: {
int rawValue = input.readEnum();
dtype_ = rawValue;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.CostGraphDef.Node.OutputInfo.class, org.tensorflow.framework.CostGraphDef.Node.OutputInfo.Builder.class);
}
public static final int SIZE_FIELD_NUMBER = 1;
private long size_;
/**
* int64 size = 1;
*/
public long getSize() {
return size_;
}
public static final int ALIAS_INPUT_PORT_FIELD_NUMBER = 2;
private long aliasInputPort_;
/**
*
* If >= 0, the output is an alias of an input. Note that an alias input
* may itself be an alias. The algorithm will therefore need to follow
* those pointers.
*
*
* int64 alias_input_port = 2;
*/
public long getAliasInputPort() {
return aliasInputPort_;
}
public static final int SHAPE_FIELD_NUMBER = 3;
private org.tensorflow.framework.TensorShapeProto shape_;
/**
* .tensorflow.TensorShapeProto shape = 3;
*/
public boolean hasShape() {
return shape_ != null;
}
/**
* .tensorflow.TensorShapeProto shape = 3;
*/
public org.tensorflow.framework.TensorShapeProto getShape() {
return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_;
}
/**
* .tensorflow.TensorShapeProto shape = 3;
*/
public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() {
return getShape();
}
public static final int DTYPE_FIELD_NUMBER = 4;
private int dtype_;
/**
* .tensorflow.DataType dtype = 4;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 4;
*/
public org.tensorflow.framework.DataType getDtype() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
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(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (size_ != 0L) {
output.writeInt64(1, size_);
}
if (aliasInputPort_ != 0L) {
output.writeInt64(2, aliasInputPort_);
}
if (shape_ != null) {
output.writeMessage(3, getShape());
}
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
output.writeEnum(4, dtype_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (size_ != 0L) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(1, size_);
}
if (aliasInputPort_ != 0L) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(2, aliasInputPort_);
}
if (shape_ != null) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(3, getShape());
}
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeEnumSize(4, dtype_);
}
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.CostGraphDef.Node.OutputInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.CostGraphDef.Node.OutputInfo other = (org.tensorflow.framework.CostGraphDef.Node.OutputInfo) obj;
boolean result = true;
result = result && (getSize()
== other.getSize());
result = result && (getAliasInputPort()
== other.getAliasInputPort());
result = result && (hasShape() == other.hasShape());
if (hasShape()) {
result = result && getShape()
.equals(other.getShape());
}
result = result && dtype_ == other.dtype_;
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) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getSize());
hash = (37 * hash) + ALIAS_INPUT_PORT_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getAliasInputPort());
if (hasShape()) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShape().hashCode();
}
hash = (37 * hash) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + dtype_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.CostGraphDef.Node.OutputInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.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.CostGraphDef.Node.OutputInfo 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(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Outputs of this node.
*
*
* Protobuf type {@code tensorflow.CostGraphDef.Node.OutputInfo}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.Node.OutputInfo)
org.tensorflow.framework.CostGraphDef.Node.OutputInfoOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.CostGraphDef.Node.OutputInfo.class, org.tensorflow.framework.CostGraphDef.Node.OutputInfo.Builder.class);
}
// Construct using org.tensorflow.framework.CostGraphDef.Node.OutputInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
size_ = 0L;
aliasInputPort_ = 0L;
if (shapeBuilder_ == null) {
shape_ = null;
} else {
shape_ = null;
shapeBuilder_ = null;
}
dtype_ = 0;
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_descriptor;
}
public org.tensorflow.framework.CostGraphDef.Node.OutputInfo getDefaultInstanceForType() {
return org.tensorflow.framework.CostGraphDef.Node.OutputInfo.getDefaultInstance();
}
public org.tensorflow.framework.CostGraphDef.Node.OutputInfo build() {
org.tensorflow.framework.CostGraphDef.Node.OutputInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.CostGraphDef.Node.OutputInfo buildPartial() {
org.tensorflow.framework.CostGraphDef.Node.OutputInfo result = new org.tensorflow.framework.CostGraphDef.Node.OutputInfo(this);
result.size_ = size_;
result.aliasInputPort_ = aliasInputPort_;
if (shapeBuilder_ == null) {
result.shape_ = shape_;
} else {
result.shape_ = shapeBuilder_.build();
}
result.dtype_ = dtype_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.CostGraphDef.Node.OutputInfo) {
return mergeFrom((org.tensorflow.framework.CostGraphDef.Node.OutputInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.CostGraphDef.Node.OutputInfo other) {
if (other == org.tensorflow.framework.CostGraphDef.Node.OutputInfo.getDefaultInstance()) return this;
if (other.getSize() != 0L) {
setSize(other.getSize());
}
if (other.getAliasInputPort() != 0L) {
setAliasInputPort(other.getAliasInputPort());
}
if (other.hasShape()) {
mergeShape(other.getShape());
}
if (other.dtype_ != 0) {
setDtypeValue(other.getDtypeValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.CostGraphDef.Node.OutputInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.CostGraphDef.Node.OutputInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long size_ ;
/**
* int64 size = 1;
*/
public long getSize() {
return size_;
}
/**
* int64 size = 1;
*/
public Builder setSize(long value) {
size_ = value;
onChanged();
return this;
}
/**
* int64 size = 1;
*/
public Builder clearSize() {
size_ = 0L;
onChanged();
return this;
}
private long aliasInputPort_ ;
/**
*
* If >= 0, the output is an alias of an input. Note that an alias input
* may itself be an alias. The algorithm will therefore need to follow
* those pointers.
*
*
* int64 alias_input_port = 2;
*/
public long getAliasInputPort() {
return aliasInputPort_;
}
/**
*
* If >= 0, the output is an alias of an input. Note that an alias input
* may itself be an alias. The algorithm will therefore need to follow
* those pointers.
*
* If >= 0, the output is an alias of an input. Note that an alias input
* may itself be an alias. The algorithm will therefore need to follow
* those pointers.
*
* The device of the node. Can be empty if the node is mapped to the
* default partition or partitioning hasn't been run yet.
*
*
* string device = 2;
*/
public com.github.os72.protobuf351.ByteString
getDeviceBytes() {
java.lang.Object ref = device_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
device_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 3;
private int id_;
/**
*
* The id of the node. Node ids are only unique inside a partition.
*
*
* int32 id = 3;
*/
public int getId() {
return id_;
}
public static final int INPUT_INFO_FIELD_NUMBER = 4;
private java.util.List inputInfo_;
/**
* repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
*/
public java.util.List getInputInfoList() {
return inputInfo_;
}
/**
* repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
*/
public java.util.List extends org.tensorflow.framework.CostGraphDef.Node.InputInfoOrBuilder>
getInputInfoOrBuilderList() {
return inputInfo_;
}
/**
* repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
*/
public int getInputInfoCount() {
return inputInfo_.size();
}
/**
* repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
*/
public org.tensorflow.framework.CostGraphDef.Node.InputInfo getInputInfo(int index) {
return inputInfo_.get(index);
}
/**
* repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
*/
public org.tensorflow.framework.CostGraphDef.Node.InputInfoOrBuilder getInputInfoOrBuilder(
int index) {
return inputInfo_.get(index);
}
public static final int OUTPUT_INFO_FIELD_NUMBER = 5;
private java.util.List outputInfo_;
/**
* repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
*/
public java.util.List getOutputInfoList() {
return outputInfo_;
}
/**
* repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
*/
public java.util.List extends org.tensorflow.framework.CostGraphDef.Node.OutputInfoOrBuilder>
getOutputInfoOrBuilderList() {
return outputInfo_;
}
/**
* repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
*/
public int getOutputInfoCount() {
return outputInfo_.size();
}
/**
* repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
*/
public org.tensorflow.framework.CostGraphDef.Node.OutputInfo getOutputInfo(int index) {
return outputInfo_.get(index);
}
/**
* repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
*/
public org.tensorflow.framework.CostGraphDef.Node.OutputInfoOrBuilder getOutputInfoOrBuilder(
int index) {
return outputInfo_.get(index);
}
public static final int TEMPORARY_MEMORY_SIZE_FIELD_NUMBER = 6;
private long temporaryMemorySize_;
/**
*
* Temporary memory used by this node.
*
*
* int64 temporary_memory_size = 6;
*/
public long getTemporaryMemorySize() {
return temporaryMemorySize_;
}
public static final int HOST_TEMP_MEMORY_SIZE_FIELD_NUMBER = 10;
private long hostTempMemorySize_;
/**
* int64 host_temp_memory_size = 10;
*/
public long getHostTempMemorySize() {
return hostTempMemorySize_;
}
public static final int DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER = 11;
private long deviceTempMemorySize_;
/**
* int64 device_temp_memory_size = 11;
*/
public long getDeviceTempMemorySize() {
return deviceTempMemorySize_;
}
public static final int HOST_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 12;
private long hostPersistentMemorySize_;
/**
* int64 host_persistent_memory_size = 12;
*/
public long getHostPersistentMemorySize() {
return hostPersistentMemorySize_;
}
public static final int DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 16;
private long devicePersistentMemorySize_;
/**
* int64 device_persistent_memory_size = 16;
*/
public long getDevicePersistentMemorySize() {
return devicePersistentMemorySize_;
}
public static final int COMPUTE_COST_FIELD_NUMBER = 9;
private long computeCost_;
/**
*
* Estimate of the computational cost of this node, in microseconds.
*
*
* int64 compute_cost = 9;
*/
public long getComputeCost() {
return computeCost_;
}
public static final int COMPUTE_TIME_FIELD_NUMBER = 14;
private long computeTime_;
/**
*
* Analytical estimate of the computational cost of this node, in
* microseconds.
*
*
* int64 compute_time = 14;
*/
public long getComputeTime() {
return computeTime_;
}
public static final int MEMORY_TIME_FIELD_NUMBER = 15;
private long memoryTime_;
/**
*
* Analytical estimate of the memory access cost of this node, in
* microseconds.
*
*
* int64 memory_time = 15;
*/
public long getMemoryTime() {
return memoryTime_;
}
public static final int IS_FINAL_FIELD_NUMBER = 7;
private boolean isFinal_;
/**
*
* If true, the output is permanent: it can't be discarded, because this
* node is part of the "final output". Nodes may depend on final nodes.
*
*
* bool is_final = 7;
*/
public boolean getIsFinal() {
return isFinal_;
}
public static final int CONTROL_INPUT_FIELD_NUMBER = 8;
private java.util.List controlInput_;
/**
*