Signature.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Builds a new function signature.
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()
|
Public Methods
Returns a signature from the provided data.
Register a tensor as an input of the function.
Parameters
inputName |
user-friendly name for this input tensor |
input |
input tensor |
Throws
IllegalArgumentException |
if inputName is already mapped to another input
|
Sets the unique key of this signature.
When not set explicitly, the default value is DEFAULT_KEY
.
Throws
IllegalArgumentException |
if the key is invalid
|
public
Signature.Builder
methodName
(String methodName)
Provide extensible name information enabling third-party users to mark a signature as
supporting a particular method
Parameters
methodName |
method name or null for none (default) |
Register a tensor as an output of the function.
Parameters
outputName |
user-friendly name for this output tensor |
output |
output tensor |
Throws
IllegalArgumentException |
if outputName is already mapped to another output
|
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.Builder\n\npublic static class **Signature.Builder** \nBuilds a new function signature. \n\n### Public Constructors\n\n|---|----------------------------------------------------------------------------|\n| | [Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder#Builder())() |\n\n### Public Methods\n\n|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Signature](/jvm/api_docs/java/org/tensorflow/Signature) | [build](/jvm/api_docs/java/org/tensorflow/Signature.Builder#build())() Returns a signature from the provided data. |\n| [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder) | [input](/jvm/api_docs/java/org/tensorflow/Signature.Builder#input(java.lang.String, org.tensorflow.Operand\u003c?\u003e))(String inputName, [Operand](/jvm/api_docs/java/org/tensorflow/Operand)\\\u003c?\\\u003e input) Register a tensor as an input of the function. |\n| [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder) | [key](/jvm/api_docs/java/org/tensorflow/Signature.Builder#key(java.lang.String))(String key) Sets the unique key of this signature. |\n| [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder) | [methodName](/jvm/api_docs/java/org/tensorflow/Signature.Builder#methodName(java.lang.String))(String methodName) Provide extensible name information enabling third-party users to mark a signature as supporting a particular method |\n| [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder) | [output](/jvm/api_docs/java/org/tensorflow/Signature.Builder#output(java.lang.String, org.tensorflow.Operand\u003c?\u003e))(String outputName, [Operand](/jvm/api_docs/java/org/tensorflow/Operand)\\\u003c?\\\u003e output) Register a tensor as an output of the function. |\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\nPublic Constructors\n-------------------\n\n#### public\n**Builder**\n()\n\n\u003cbr /\u003e\n\nPublic Methods\n--------------\n\n#### public [Signature](/jvm/api_docs/java/org/tensorflow/Signature)\n**build**\n()\n\nReturns a signature from the provided data. \n\n#### public [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder)\n**input**\n(String inputName, [Operand](/jvm/api_docs/java/org/tensorflow/Operand)\\\u003c?\\\u003e input)\n\nRegister a tensor as an input of the function. \n\n##### Parameters\n\n| inputName | user-friendly name for this input tensor |\n| input | input tensor |\n|-----------|------------------------------------------|\n\n##### Returns\n\n- this builder \n\n##### Throws\n\n| IllegalArgumentException | if `inputName` is already mapped to another input |\n|--------------------------|---------------------------------------------------|\n\n#### public [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder)\n**key**\n(String key)\n\nSets the unique key of this signature.\n\nWhen not set explicitly, the default value is [DEFAULT_KEY](/jvm/api_docs/java/org/tensorflow/Signature#DEFAULT_KEY).\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| key | signature key |\n|-----|---------------|\n\n##### Returns\n\n- this builder \n\n##### Throws\n\n| IllegalArgumentException | if the key is invalid |\n|--------------------------|-----------------------|\n\n#### public [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder)\n**methodName**\n(String methodName)\n\nProvide extensible name information enabling third-party users to mark a signature as\nsupporting a particular method \n\n##### Parameters\n\n| methodName | method name or null for none (default) |\n|------------|----------------------------------------|\n\n##### Returns\n\n- this builder \n\n#### public [Signature.Builder](/jvm/api_docs/java/org/tensorflow/Signature.Builder)\n**output**\n(String outputName, [Operand](/jvm/api_docs/java/org/tensorflow/Operand)\\\u003c?\\\u003e output)\n\nRegister a tensor as an output of the function. \n\n##### Parameters\n\n| outputName | user-friendly name for this output tensor |\n| output | output tensor |\n|------------|-------------------------------------------|\n\n##### Returns\n\n- this builder \n\n##### Throws\n\n| IllegalArgumentException | if `outputName` is already mapped to another output |\n|--------------------------|-----------------------------------------------------|"]]