Describe the inputs and outputs of an executable entity, such as a ConcreteFunction
, among
other useful metadata.
Nested Classes
class | Signature.Builder | Builds a new function signature. | |
class | Signature.TensorDescription |
Constants
String | DEFAULT_KEY | The default signature key, when not provided |
Public Methods
static Signature.Builder |
builder()
Returns a new builder for creating a signature
|
Map<String, Signature.TensorDescription> |
getInputs()
Returns the names of the inputs in this signature mapped to their expected data type and shape
|
Map<String, Signature.TensorDescription> |
getOutputs()
Returns the names of the outputs in this signature mapped to their expected data type and shape
|
Set<String> |
inputNames()
Returns the names of the inputs in this signature
|
String |
key()
Return the key of this signature
|
String |
methodName()
Returns the method name of this signature (e.g.
|
Set<String> |
outputNames()
Returns the names of the outputs in this signature
|
String |
toString()
|
Inherited Methods
Constants
public static final String DEFAULT_KEY
The default signature key, when not provided
Public Methods
public Map<String, Signature.TensorDescription> getInputs ()
Returns the names of the inputs in this signature mapped to their expected data type and shape
public Map<String, Signature.TensorDescription> getOutputs ()
Returns the names of the outputs in this signature mapped to their expected data type and shape
public Set<String> inputNames ()
Returns the names of the inputs in this signature
public String key ()
Return the key of this signature
public String methodName ()
Returns the method name of this signature (e.g. as exposed by TF serving) or null if none
public Set<String> outputNames ()
Returns the names of the outputs in this signature