hub.add_signature

Adds a signature to the module definition.

DEPRECATION NOTE: This belongs to the hub.Module API and TF1 Hub format. For TF2, switch to plain SavedModels.

name Signature name as a string. If omitted, it is interpreted as 'default' and is the signature used when Module.call signature is not specified.
inputs A dict from input name to Tensor or SparseTensor to feed when applying the signature. If a single tensor is passed, it is interpreted as a dict with a single 'default' entry.
outputs A dict from output name to Tensor or SparseTensor to return from applying the signature. If a single tensor is passed, it is interpreted as a dict with a single 'default' entry.

ValueError if the arguments are invalid.