public final class SignatureDef extends com.github.os72.protobuf351.GeneratedMessageV3 implements SignatureDefOrBuilder
SignatureDef defines the signature of a computation supported by a TensorFlow graph. For example, a model with two loss computations, sharing a single input, might have the following signature_def map. Note that across the two SignatureDefs "loss_A" and "loss_B", the input key, output key, and method_name are identical, and will be used by system(s) that implement or rely upon this particular loss method. The output tensor names differ, demonstrating how different outputs can exist for the same method. signature_def { key: "loss_A" value { inputs { key: "input" value { name: "input:0" dtype: DT_STRING tensor_shape: ... } } outputs { key: "loss_output" value { name: "loss_output_A:0" dtype: DT_FLOAT tensor_shape: ... } } } ... method_name: "some/package/compute_loss" } signature_def { key: "loss_B" value { inputs { key: "input" value { name: "input:0" dtype: DT_STRING tensor_shape: ... } } outputs { key: "loss_output" value { name: "loss_output_B:0" dtype: DT_FLOAT tensor_shape: ... } } } ... method_name: "some/package/compute_loss" }Protobuf type
tensorflow.SignatureDef
Modifier and Type | Class and Description |
---|---|
static class |
SignatureDef.Builder
SignatureDef defines the signature of a computation supported by a TensorFlow
graph.
|
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent, com.github.os72.protobuf351.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage<MessageType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage>, com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage>, com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
INPUTS_FIELD_NUMBER |
static int |
METHOD_NAME_FIELD_NUMBER |
static int |
OUTPUTS_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsInputs(String key)
Named input parameters.
|
boolean |
containsOutputs(String key)
Named output parameters.
|
boolean |
equals(Object obj) |
static SignatureDef |
getDefaultInstance() |
SignatureDef |
getDefaultInstanceForType() |
static com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
Map<String,TensorInfo> |
getInputs()
Deprecated.
|
int |
getInputsCount()
Named input parameters.
|
Map<String,TensorInfo> |
getInputsMap()
Named input parameters.
|
TensorInfo |
getInputsOrDefault(String key,
TensorInfo defaultValue)
Named input parameters.
|
TensorInfo |
getInputsOrThrow(String key)
Named input parameters.
|
String |
getMethodName()
Extensible method_name information enabling third-party users to mark a
SignatureDef as supporting a particular method.
|
com.github.os72.protobuf351.ByteString |
getMethodNameBytes()
Extensible method_name information enabling third-party users to mark a
SignatureDef as supporting a particular method.
|
Map<String,TensorInfo> |
getOutputs()
Deprecated.
|
int |
getOutputsCount()
Named output parameters.
|
Map<String,TensorInfo> |
getOutputsMap()
Named output parameters.
|
TensorInfo |
getOutputsOrDefault(String key,
TensorInfo defaultValue)
Named output parameters.
|
TensorInfo |
getOutputsOrThrow(String key)
Named output parameters.
|
com.github.os72.protobuf351.Parser<SignatureDef> |
getParserForType() |
int |
getSerializedSize() |
com.github.os72.protobuf351.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.github.os72.protobuf351.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static SignatureDef.Builder |
newBuilder() |
static SignatureDef.Builder |
newBuilder(SignatureDef prototype) |
SignatureDef.Builder |
newBuilderForType() |
protected SignatureDef.Builder |
newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) |
static SignatureDef |
parseDelimitedFrom(InputStream input) |
static SignatureDef |
parseDelimitedFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static SignatureDef |
parseFrom(byte[] data) |
static SignatureDef |
parseFrom(byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static SignatureDef |
parseFrom(ByteBuffer data) |
static SignatureDef |
parseFrom(ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static SignatureDef |
parseFrom(com.github.os72.protobuf351.ByteString data) |
static SignatureDef |
parseFrom(com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static SignatureDef |
parseFrom(com.github.os72.protobuf351.CodedInputStream input) |
static SignatureDef |
parseFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static SignatureDef |
parseFrom(InputStream input) |
static SignatureDef |
parseFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static com.github.os72.protobuf351.Parser<SignatureDef> |
parser() |
SignatureDef.Builder |
toBuilder() |
void |
writeTo(com.github.os72.protobuf351.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int INPUTS_FIELD_NUMBER
public static final int OUTPUTS_FIELD_NUMBER
public static final int METHOD_NAME_FIELD_NUMBER
public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.github.os72.protobuf351.MessageOrBuilder
getUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3
public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.MapField internalGetMapField(int number)
internalGetMapField
in class com.github.os72.protobuf351.GeneratedMessageV3
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.github.os72.protobuf351.GeneratedMessageV3
public int getInputsCount()
SignatureDefOrBuilder
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
getInputsCount
in interface SignatureDefOrBuilder
public boolean containsInputs(String key)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
containsInputs
in interface SignatureDefOrBuilder
@Deprecated public Map<String,TensorInfo> getInputs()
getInputsMap()
instead.getInputs
in interface SignatureDefOrBuilder
public Map<String,TensorInfo> getInputsMap()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
getInputsMap
in interface SignatureDefOrBuilder
public TensorInfo getInputsOrDefault(String key, TensorInfo defaultValue)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
getInputsOrDefault
in interface SignatureDefOrBuilder
public TensorInfo getInputsOrThrow(String key)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
getInputsOrThrow
in interface SignatureDefOrBuilder
public int getOutputsCount()
SignatureDefOrBuilder
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
getOutputsCount
in interface SignatureDefOrBuilder
public boolean containsOutputs(String key)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
containsOutputs
in interface SignatureDefOrBuilder
@Deprecated public Map<String,TensorInfo> getOutputs()
getOutputsMap()
instead.getOutputs
in interface SignatureDefOrBuilder
public Map<String,TensorInfo> getOutputsMap()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
getOutputsMap
in interface SignatureDefOrBuilder
public TensorInfo getOutputsOrDefault(String key, TensorInfo defaultValue)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
getOutputsOrDefault
in interface SignatureDefOrBuilder
public TensorInfo getOutputsOrThrow(String key)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
getOutputsOrThrow
in interface SignatureDefOrBuilder
public String getMethodName()
Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. This enables producers and consumers of SignatureDefs, e.g. a model definition library and a serving library to have a clear hand-off regarding the semantics of a computation. Note that multiple SignatureDefs in a single MetaGraphDef may have the same method_name. This is commonly used to support multi-headed computation, where a single graph computation may return multiple results.
string method_name = 3;
getMethodName
in interface SignatureDefOrBuilder
public com.github.os72.protobuf351.ByteString getMethodNameBytes()
Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. This enables producers and consumers of SignatureDefs, e.g. a model definition library and a serving library to have a clear hand-off regarding the semantics of a computation. Note that multiple SignatureDefs in a single MetaGraphDef may have the same method_name. This is commonly used to support multi-headed computation, where a single graph computation may return multiple results.
string method_name = 3;
getMethodNameBytes
in interface SignatureDefOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
isInitialized
in class com.github.os72.protobuf351.GeneratedMessageV3
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws IOException
writeTo
in interface com.github.os72.protobuf351.MessageLite
writeTo
in class com.github.os72.protobuf351.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.github.os72.protobuf351.MessageLite
getSerializedSize
in class com.github.os72.protobuf351.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.github.os72.protobuf351.Message
equals
in class com.github.os72.protobuf351.AbstractMessage
public int hashCode()
hashCode
in interface com.github.os72.protobuf351.Message
hashCode
in class com.github.os72.protobuf351.AbstractMessage
public static SignatureDef parseFrom(ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static SignatureDef parseFrom(ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static SignatureDef parseFrom(com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static SignatureDef parseFrom(com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static SignatureDef parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static SignatureDef parseFrom(byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static SignatureDef parseFrom(InputStream input) throws IOException
IOException
public static SignatureDef parseFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SignatureDef parseDelimitedFrom(InputStream input) throws IOException
IOException
public static SignatureDef parseDelimitedFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SignatureDef parseFrom(com.github.os72.protobuf351.CodedInputStream input) throws IOException
IOException
public static SignatureDef parseFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public SignatureDef.Builder newBuilderForType()
newBuilderForType
in interface com.github.os72.protobuf351.Message
newBuilderForType
in interface com.github.os72.protobuf351.MessageLite
public static SignatureDef.Builder newBuilder()
public static SignatureDef.Builder newBuilder(SignatureDef prototype)
public SignatureDef.Builder toBuilder()
toBuilder
in interface com.github.os72.protobuf351.Message
toBuilder
in interface com.github.os72.protobuf351.MessageLite
protected SignatureDef.Builder newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.github.os72.protobuf351.GeneratedMessageV3
public static SignatureDef getDefaultInstance()
public static com.github.os72.protobuf351.Parser<SignatureDef> parser()
public com.github.os72.protobuf351.Parser<SignatureDef> getParserForType()
getParserForType
in interface com.github.os72.protobuf351.Message
getParserForType
in interface com.github.os72.protobuf351.MessageLite
getParserForType
in class com.github.os72.protobuf351.GeneratedMessageV3
public SignatureDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
Copyright © 2018. All rights reserved.