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/graph.proto
package org.tensorflow.framework;
/**
*
* Represents the graph of operations
*
*
* Protobuf type {@code tensorflow.GraphDef}
*/
public final class GraphDef extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.GraphDef)
GraphDefOrBuilder {
private static final long serialVersionUID = 0L;
// Use GraphDef.newBuilder() to construct.
private GraphDef(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private GraphDef() {
node_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GraphDef();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GraphDef(
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;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
node_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
node_.add(
input.readMessage(org.tensorflow.framework.NodeDef.parser(), extensionRegistry));
break;
}
case 18: {
org.tensorflow.framework.FunctionDefLibrary.Builder subBuilder = null;
if (library_ != null) {
subBuilder = library_.toBuilder();
}
library_ = input.readMessage(org.tensorflow.framework.FunctionDefLibrary.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(library_);
library_ = subBuilder.buildPartial();
}
break;
}
case 24: {
version_ = input.readInt32();
break;
}
case 34: {
org.tensorflow.framework.VersionDef.Builder subBuilder = null;
if (versions_ != null) {
subBuilder = versions_.toBuilder();
}
versions_ = input.readMessage(org.tensorflow.framework.VersionDef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(versions_);
versions_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_ & 0x00000001) != 0)) {
node_ = java.util.Collections.unmodifiableList(node_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphProtos.internal_static_tensorflow_GraphDef_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphProtos.internal_static_tensorflow_GraphDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphDef.class, org.tensorflow.framework.GraphDef.Builder.class);
}
public static final int NODE_FIELD_NUMBER = 1;
private java.util.List node_;
/**
* repeated .tensorflow.NodeDef node = 1;
*/
@java.lang.Override
public java.util.List getNodeList() {
return node_;
}
/**
* repeated .tensorflow.NodeDef node = 1;
*/
@java.lang.Override
public java.util.List
getNodeOrBuilderList() {
return node_;
}
/**
* repeated .tensorflow.NodeDef node = 1;
*/
@java.lang.Override
public int getNodeCount() {
return node_.size();
}
/**
* repeated .tensorflow.NodeDef node = 1;
*/
@java.lang.Override
public org.tensorflow.framework.NodeDef getNode(int index) {
return node_.get(index);
}
/**
* repeated .tensorflow.NodeDef node = 1;
*/
@java.lang.Override
public org.tensorflow.framework.NodeDefOrBuilder getNodeOrBuilder(
int index) {
return node_.get(index);
}
public static final int VERSIONS_FIELD_NUMBER = 4;
private org.tensorflow.framework.VersionDef versions_;
/**
*
* 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.
*
*
* .tensorflow.VersionDef versions = 4;
* @return Whether the versions field is set.
*/
@java.lang.Override
public boolean hasVersions() {
return versions_ != null;
}
/**
*
* 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.
*
* 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.
*
*
* .tensorflow.VersionDef versions = 4;
*/
@java.lang.Override
public org.tensorflow.framework.VersionDefOrBuilder getVersionsOrBuilder() {
return getVersions();
}
public static final int VERSION_FIELD_NUMBER = 3;
private int version_;
/**
*
* Deprecated single version field; use versions above instead. Since all
* GraphDef changes before "versions" was introduced were forward
* compatible, this field is entirely ignored.
*
*
* int32 version = 3 [deprecated = true];
* @return The version.
*/
@java.lang.Override
@java.lang.Deprecated public int getVersion() {
return version_;
}
public static final int LIBRARY_FIELD_NUMBER = 2;
private org.tensorflow.framework.FunctionDefLibrary library_;
/**
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
*
* .tensorflow.FunctionDefLibrary library = 2;
* @return Whether the library field is set.
*/
@java.lang.Override
public boolean hasLibrary() {
return library_ != null;
}
/**
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
*
* .tensorflow.FunctionDefLibrary library = 2;
*/
@java.lang.Override
public org.tensorflow.framework.FunctionDefLibraryOrBuilder getLibraryOrBuilder() {
return getLibrary();
}
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 {
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);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < node_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(1, node_.get(i));
}
if (library_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, getLibrary());
}
if (version_ != 0) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt32Size(3, version_);
}
if (versions_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(4, getVersions());
}
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.GraphDef)) {
return super.equals(obj);
}
org.tensorflow.framework.GraphDef other = (org.tensorflow.framework.GraphDef) obj;
if (!getNodeList()
.equals(other.getNodeList())) return false;
if (hasVersions() != other.hasVersions()) return false;
if (hasVersions()) {
if (!getVersions()
.equals(other.getVersions())) return false;
}
if (getVersion()
!= other.getVersion()) return false;
if (hasLibrary() != other.hasLibrary()) return false;
if (hasLibrary()) {
if (!getLibrary()
.equals(other.getLibrary())) 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();
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;
}
public static org.tensorflow.framework.GraphDef parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphDef 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.GraphDef parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphDef 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.GraphDef parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphDef 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.GraphDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphDef 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.GraphDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphDef 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.GraphDef 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.GraphDef 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.GraphDef 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;
}
/**
*
* 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.
*
*
* .tensorflow.VersionDef versions = 4;
* @return Whether the versions field is set.
*/
public boolean hasVersions() {
return versionsBuilder_ != null || versions_ != null;
}
/**
*
* 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.
*
* 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.
*
*
* .tensorflow.VersionDef versions = 4;
*/
public Builder setVersions(org.tensorflow.framework.VersionDef value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
versions_ = value;
onChanged();
} else {
versionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Deprecated single version field; use versions above instead. Since all
* GraphDef changes before "versions" was introduced were forward
* compatible, this field is entirely ignored.
*
*
* int32 version = 3 [deprecated = true];
* @return The version.
*/
@java.lang.Override
@java.lang.Deprecated public int getVersion() {
return version_;
}
/**
*
* Deprecated single version field; use versions above instead. Since all
* GraphDef changes before "versions" was introduced were forward
* compatible, this field is entirely ignored.
*
*
* int32 version = 3 [deprecated = true];
* @param value The version to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
*
* Deprecated single version field; use versions above instead. Since all
* GraphDef changes before "versions" was introduced were forward
* compatible, this field is entirely ignored.
*
*
* int32 version = 3 [deprecated = true];
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private org.tensorflow.framework.FunctionDefLibrary library_;
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.FunctionDefLibrary, org.tensorflow.framework.FunctionDefLibrary.Builder, org.tensorflow.framework.FunctionDefLibraryOrBuilder> libraryBuilder_;
/**
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
*
* .tensorflow.FunctionDefLibrary library = 2;
* @return Whether the library field is set.
*/
public boolean hasLibrary() {
return libraryBuilder_ != null || library_ != null;
}
/**
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
*
* .tensorflow.FunctionDefLibrary library = 2;
*/
public Builder setLibrary(org.tensorflow.framework.FunctionDefLibrary value) {
if (libraryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
library_ = value;
onChanged();
} else {
libraryBuilder_.setMessage(value);
}
return this;
}
/**
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
* EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
* "library" provides user-defined functions.
* Naming:
* * library.function.name are in a flat namespace.
* NOTE: We may need to change it to be hierarchical to support
* different orgs. E.g.,
* { "/google/nn", { ... }},
* { "/google/vision", { ... }}
* { "/org_foo/module_bar", { ... }}
* map<string, FunctionDefLib> named_lib;
* * If node[i].op is the name of one function in "library",
* node[i] is deemed as a function call. Otherwise, node[i].op
* must be a primitive operation supported by the runtime.
* Function call semantics:
* * The callee may start execution as soon as some of its inputs
* are ready. The caller may want to use Tuple() mechanism to
* ensure all inputs are ready in the same time.
* * The consumer of return values may start executing as soon as
* the return values the consumer depends on are ready. The
* consumer may want to use Tuple() mechanism to ensure the
* consumer does not start until all return values of the callee
* function are ready.
*
*
* .tensorflow.FunctionDefLibrary library = 2;
*/
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.FunctionDefLibrary, org.tensorflow.framework.FunctionDefLibrary.Builder, org.tensorflow.framework.FunctionDefLibraryOrBuilder>
getLibraryFieldBuilder() {
if (libraryBuilder_ == null) {
libraryBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.FunctionDefLibrary, org.tensorflow.framework.FunctionDefLibrary.Builder, org.tensorflow.framework.FunctionDefLibraryOrBuilder>(
getLibrary(),
getParentForChildren(),
isClean());
library_ = null;
}
return libraryBuilder_;
}
@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.GraphDef)
}
// @@protoc_insertion_point(class_scope:tensorflow.GraphDef)
private static final org.tensorflow.framework.GraphDef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.GraphDef();
}
public static org.tensorflow.framework.GraphDef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public GraphDef parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new GraphDef(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.GraphDef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}