public static class
Signature.Builder
Builds a new function signature.
Public Constructors
|
Builder()
|
Public Methods
| Signature |
build()
Returns a signature from the provided data.
|
| Signature.Builder | |
| Signature.Builder |
key(String key)
Sets the unique key of this signature.
|
| Signature.Builder |
methodName(String methodName)
Provide extensible name information enabling third-party users to mark a signature as
supporting a particular method
|
| Signature.Builder |
Inherited Methods
Public Constructors
public Builder ()
Public Methods
public Signature.Builder input (String inputName, Operand<?> input)
Register a tensor as an input of the function.
Parameters
| inputName | user-friendly name for this input tensor |
|---|---|
| input | input tensor |
Returns
- this builder
Throws
| IllegalArgumentException | if inputName is already mapped to another input
|
|---|
public Signature.Builder key (String key)
Sets the unique key of this signature.
When not set explicitly, the default value is DEFAULT_KEY.
Parameters
| key | signature key |
|---|
Returns
- this builder
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) |
|---|
Returns
- this builder
public Signature.Builder output (String outputName, Operand<?> output)
Register a tensor as an output of the function.
Parameters
| outputName | user-friendly name for this output tensor |
|---|---|
| output | output tensor |
Returns
- this builder
Throws
| IllegalArgumentException | if outputName is already mapped to another output
|
|---|