Object

com.johnsnowlabs.ml.tensorflow.sign

ModelSignatureConstants

Related Doc: package sign

Permalink

object ModelSignatureConstants

Based on BERT SavedModel reference, for instance:

signature_def['serving_default']: The given SavedModel SignatureDef contains the following input(s):

inputs['attention_mask'] tensor_info: dtype: DT_INT32 shape: (-1, -1) name: serving_default_attention_mask:0

inputs['input_ids'] tensor_info: dtype: DT_INT32 shape: (-1, -1) name: serving_default_input_ids:0

inputs['token_type_ids'] tensor_info: dtype: DT_INT32 shape: (-1, -1) name: serving_default_token_type_ids:0

The given SavedModel SignatureDef contains the following output(s):

outputs['last_hidden_state'] tensor_info: dtype: DT_FLOAT shape: (-1, -1, 768) name: StatefulPartitionedCall:0

outputs['pooler_output'] tensor_info: dtype: DT_FLOAT shape: (-1, 768) name: StatefulPartitionedCall:1

Method name is: tensorflow/serving/predict*

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ModelSignatureConstants
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait TFInfoDescriptor extends AnyRef

    Permalink
  2. sealed trait TFInfoNameMapper extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object AttentionMask extends TFInfoNameMapper with Product with Serializable

    Permalink
  5. object AttentionMaskV1 extends TFInfoNameMapper with Product with Serializable

    Permalink
  6. object DType extends TFInfoDescriptor with Product with Serializable

    Permalink
  7. object DecoderAttentionMask extends TFInfoNameMapper with Product with Serializable

    Permalink
  8. object DecoderEncoderInputIds extends TFInfoNameMapper with Product with Serializable

    Permalink
  9. object DecoderInputIds extends TFInfoNameMapper with Product with Serializable

    Permalink
  10. object DecoderOutput extends TFInfoNameMapper with Product with Serializable

    Permalink
  11. object DimCount extends TFInfoDescriptor with Product with Serializable

    Permalink
  12. object EncoderAttentionMask extends TFInfoNameMapper with Product with Serializable

    Permalink
  13. object EncoderInputIds extends TFInfoNameMapper with Product with Serializable

    Permalink
  14. object EncoderOutput extends TFInfoNameMapper with Product with Serializable

    Permalink
  15. object InputIds extends TFInfoNameMapper with Product with Serializable

    Permalink
  16. object InputIdsV1 extends TFInfoNameMapper with Product with Serializable

    Permalink
  17. object LastHiddenState extends TFInfoNameMapper with Product with Serializable

    Permalink
  18. object LastHiddenStateV1 extends TFInfoNameMapper with Product with Serializable

    Permalink
  19. object LogitsOutput extends TFInfoNameMapper with Product with Serializable

    Permalink
  20. object Name extends TFInfoDescriptor with Product with Serializable

    Permalink
  21. object PoolerOutput extends TFInfoNameMapper with Product with Serializable

    Permalink
  22. object PoolerOutputV1 extends TFInfoNameMapper with Product with Serializable

    Permalink
  23. object SerializedSize extends TFInfoDescriptor with Product with Serializable

    Permalink
  24. object ShapeDimList extends TFInfoDescriptor with Product with Serializable

    Permalink
  25. object TokenTypeIds extends TFInfoNameMapper with Product with Serializable

    Permalink
  26. object TokenTypeIdsV1 extends TFInfoNameMapper with Product with Serializable

    Permalink
  27. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  28. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  31. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  33. def getSignaturePatterns(modelProvider: String): Array[Regex]

    Permalink

    Retrieve signature patterns for a given provider

    Retrieve signature patterns for a given provider

    modelProvider

    : the provider library that built the model and the signatures

    returns

    reference keys array of signature patterns for a given provider

  34. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  35. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  36. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toAdoptedKeys(keyName: String): String

    Permalink

    Convert signatures key names to normalize naming conventions

  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped