Signature
Stay organized with collections
Save and categorize content based on your preferences.
Describe the inputs and outputs of an executable entity, such as a ConcreteFunction
, among
other useful metadata.
Constants
String |
DEFAULT_KEY |
The default signature key, when not provided |
Inherited Methods
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Constants
public
static
final
String
DEFAULT_KEY
The default signature key, when not provided
Constant Value:
"serving_default"
Public Methods
Returns a new builder for creating a signature
Returns the names of the inputs in this signature mapped to their expected data type and shape
Returns the names of the outputs in this signature mapped to their expected data type and shape
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
public
String
toString
()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# Signature\n\npublic class **Signature** \nDescribe the inputs and outputs of an executable entity, such as a [ConcreteFunction](/jvm/api_docs/java/org/tensorflow/ConcreteFunction), among\nother useful metadata. \n\n### Nested Classes\n\n|-------|---|---|----------------------------------|\n| class | [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder) || Builds a new function signature. |\n| class | [Signature.TensorDescription](/jvm/api_docs/java/org/tensorflow/Signature.TensorDescription) || |\n\n### Constants\n\n|--------|------------------------------------------------------------------------|----------------------------------------------|\n| String | [DEFAULT_KEY](/jvm/api_docs/java/org/tensorflow/Signature#DEFAULT_KEY) | The default signature key, when not provided |\n\n### Public Methods\n\n|-------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder) | [builder](/jvm/api_docs/java/org/tensorflow/Signature#builder())() Returns a new builder for creating a signature |\n| Map\\\u003cString, [Signature.TensorDescription](/jvm/api_docs/java/org/tensorflow/Signature.TensorDescription)\\\u003e | [getInputs](/jvm/api_docs/java/org/tensorflow/Signature#getInputs())() Returns the names of the inputs in this signature mapped to their expected data type and shape |\n| Map\\\u003cString, [Signature.TensorDescription](/jvm/api_docs/java/org/tensorflow/Signature.TensorDescription)\\\u003e | [getOutputs](/jvm/api_docs/java/org/tensorflow/Signature#getOutputs())() Returns the names of the outputs in this signature mapped to their expected data type and shape |\n| Set\\\u003cString\\\u003e | [inputNames](/jvm/api_docs/java/org/tensorflow/Signature#inputNames())() Returns the names of the inputs in this signature |\n| String | [key](/jvm/api_docs/java/org/tensorflow/Signature#key())() Return the key of this signature |\n| String | [methodName](/jvm/api_docs/java/org/tensorflow/Signature#methodName())() Returns the method name of this signature (e.g. |\n| Set\\\u003cString\\\u003e | [outputNames](/jvm/api_docs/java/org/tensorflow/Signature#outputNames())() Returns the names of the outputs in this signature |\n| String | [toString](/jvm/api_docs/java/org/tensorflow/Signature#toString())() |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final String\n**DEFAULT_KEY**\n\nThe default signature key, when not provided \nConstant Value: \"serving_default\"\n\nPublic Methods\n--------------\n\n#### public static [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder)\n**builder**\n()\n\nReturns a new builder for creating a signature \n\n#### public Map\\\u003cString, [Signature.TensorDescription](/jvm/api_docs/java/org/tensorflow/Signature.TensorDescription)\\\u003e\n**getInputs**\n()\n\nReturns the names of the inputs in this signature mapped to their expected data type and shape \n\n#### public Map\\\u003cString, [Signature.TensorDescription](/jvm/api_docs/java/org/tensorflow/Signature.TensorDescription)\\\u003e\n**getOutputs**\n()\n\nReturns the names of the outputs in this signature mapped to their expected data type and shape \n\n#### public Set\\\u003cString\\\u003e\n**inputNames**\n()\n\nReturns the names of the inputs in this signature \n\n#### public String\n**key**\n()\n\nReturn the key of this signature \n\n#### public String\n**methodName**\n()\n\nReturns the method name of this signature (e.g. as exposed by TF serving) or null if none \n\n#### public Set\\\u003cString\\\u003e\n**outputNames**\n()\n\nReturns the names of the outputs in this signature \n\n#### public String\n**toString**\n()\n\n\u003cbr /\u003e"]]