public static final class SignatureDef.Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder> 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 | Method and Description |
---|---|
SignatureDef.Builder |
addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
SignatureDef |
build() |
SignatureDef |
buildPartial() |
SignatureDef.Builder |
clear() |
SignatureDef.Builder |
clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field) |
SignatureDef.Builder |
clearInputs() |
SignatureDef.Builder |
clearMethodName()
Extensible method_name information enabling third-party users to mark a
SignatureDef as supporting a particular method.
|
SignatureDef.Builder |
clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) |
SignatureDef.Builder |
clearOutputs() |
SignatureDef.Builder |
clone() |
boolean |
containsInputs(String key)
Named input parameters.
|
boolean |
containsOutputs(String key)
Named output parameters.
|
SignatureDef |
getDefaultInstanceForType() |
static com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptorForType() |
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> |
getMutableInputs()
Deprecated.
|
Map<String,TensorInfo> |
getMutableOutputs()
Deprecated.
|
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.
|
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.github.os72.protobuf351.MapField |
internalGetMapField(int number) |
protected com.github.os72.protobuf351.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
SignatureDef.Builder |
mergeFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
SignatureDef.Builder |
mergeFrom(com.github.os72.protobuf351.Message other) |
SignatureDef.Builder |
mergeFrom(SignatureDef other) |
SignatureDef.Builder |
mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields) |
SignatureDef.Builder |
putAllInputs(Map<String,TensorInfo> values)
Named input parameters.
|
SignatureDef.Builder |
putAllOutputs(Map<String,TensorInfo> values)
Named output parameters.
|
SignatureDef.Builder |
putInputs(String key,
TensorInfo value)
Named input parameters.
|
SignatureDef.Builder |
putOutputs(String key,
TensorInfo value)
Named output parameters.
|
SignatureDef.Builder |
removeInputs(String key)
Named input parameters.
|
SignatureDef.Builder |
removeOutputs(String key)
Named output parameters.
|
SignatureDef.Builder |
setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
SignatureDef.Builder |
setMethodName(String value)
Extensible method_name information enabling third-party users to mark a
SignatureDef as supporting a particular method.
|
SignatureDef.Builder |
setMethodNameBytes(com.github.os72.protobuf351.ByteString value)
Extensible method_name information enabling third-party users to mark a
SignatureDef as supporting a particular method.
|
SignatureDef.Builder |
setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index,
Object value) |
SignatureDef.Builder |
setUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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.Builder<SignatureDef.Builder>
protected com.github.os72.protobuf351.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public SignatureDef.Builder clear()
clear
in interface com.github.os72.protobuf351.Message.Builder
clear
in interface com.github.os72.protobuf351.MessageLite.Builder
clear
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.github.os72.protobuf351.Message.Builder
getDescriptorForType
in interface com.github.os72.protobuf351.MessageOrBuilder
getDescriptorForType
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public SignatureDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
public SignatureDef build()
build
in interface com.github.os72.protobuf351.Message.Builder
build
in interface com.github.os72.protobuf351.MessageLite.Builder
public SignatureDef buildPartial()
buildPartial
in interface com.github.os72.protobuf351.Message.Builder
buildPartial
in interface com.github.os72.protobuf351.MessageLite.Builder
public SignatureDef.Builder clone()
clone
in interface com.github.os72.protobuf351.Message.Builder
clone
in interface com.github.os72.protobuf351.MessageLite.Builder
clone
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public SignatureDef.Builder setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.github.os72.protobuf351.Message.Builder
setField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public SignatureDef.Builder clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field)
clearField
in interface com.github.os72.protobuf351.Message.Builder
clearField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public SignatureDef.Builder clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.github.os72.protobuf351.Message.Builder
clearOneof
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public SignatureDef.Builder setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
setRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public SignatureDef.Builder addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
addRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public SignatureDef.Builder mergeFrom(com.github.os72.protobuf351.Message other)
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<SignatureDef.Builder>
public SignatureDef.Builder mergeFrom(SignatureDef other)
public final boolean isInitialized()
isInitialized
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
isInitialized
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public SignatureDef.Builder mergeFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in interface com.github.os72.protobuf351.MessageLite.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<SignatureDef.Builder>
IOException
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 SignatureDef.Builder clearInputs()
public SignatureDef.Builder removeInputs(String key)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
@Deprecated public Map<String,TensorInfo> getMutableInputs()
public SignatureDef.Builder putInputs(String key, TensorInfo value)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putAllInputs(Map<String,TensorInfo> values)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
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 SignatureDef.Builder clearOutputs()
public SignatureDef.Builder removeOutputs(String key)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
@Deprecated public Map<String,TensorInfo> getMutableOutputs()
public SignatureDef.Builder putOutputs(String key, TensorInfo value)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder putAllOutputs(Map<String,TensorInfo> values)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
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 SignatureDef.Builder setMethodName(String value)
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;
public SignatureDef.Builder clearMethodName()
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;
public SignatureDef.Builder setMethodNameBytes(com.github.os72.protobuf351.ByteString value)
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;
public final SignatureDef.Builder setUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
setUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
public final SignatureDef.Builder mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
mergeUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<SignatureDef.Builder>
Copyright © 2018. All rights reserved.