Packages

o

com.johnsnowlabs.ml.tensorflow.sign

ModelSignatureConstants

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
  2. sealed trait TFInfoNameMapper extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def getSignaturePatterns(modelProvider: String): Array[Regex]

    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

  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toAdoptedKeys(keyName: String): String

    Convert signatures key names to normalize naming conventions

  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  22. object AttentionMask extends TFInfoNameMapper with Product with Serializable
  23. object AttentionMaskV1 extends TFInfoNameMapper with Product with Serializable
  24. object DType extends TFInfoDescriptor with Product with Serializable
  25. object DecoderAttentionMask extends TFInfoNameMapper with Product with Serializable
  26. object DecoderEncoderAttentionMask extends TFInfoNameMapper with Product with Serializable
  27. object DecoderEncoderInputIds extends TFInfoNameMapper with Product with Serializable
  28. object DecoderInputIds extends TFInfoNameMapper with Product with Serializable
  29. object DecoderOutput extends TFInfoNameMapper with Product with Serializable
  30. object DimCount extends TFInfoDescriptor with Product with Serializable
  31. object EncoderAttentionMask extends TFInfoNameMapper with Product with Serializable
  32. object EncoderInputIds extends TFInfoNameMapper with Product with Serializable
  33. object EncoderOutput extends TFInfoNameMapper with Product with Serializable
  34. object EndLogitsOutput extends TFInfoNameMapper with Product with Serializable
  35. object InputIds extends TFInfoNameMapper with Product with Serializable
  36. object InputIdsV1 extends TFInfoNameMapper with Product with Serializable
  37. object LastHiddenState extends TFInfoNameMapper with Product with Serializable
  38. object LastHiddenStateV1 extends TFInfoNameMapper with Product with Serializable
  39. object LogitsOutput extends TFInfoNameMapper with Product with Serializable
  40. object Name extends TFInfoDescriptor with Product with Serializable
  41. object PixelValuesInput extends TFInfoNameMapper with Product with Serializable
  42. object PoolerOutput extends TFInfoNameMapper with Product with Serializable
  43. object PoolerOutputV1 extends TFInfoNameMapper with Product with Serializable
  44. object SerializedSize extends TFInfoDescriptor with Product with Serializable
  45. object ShapeDimList extends TFInfoDescriptor with Product with Serializable
  46. object StartLogitsOutput extends TFInfoNameMapper with Product with Serializable
  47. object TokenTypeIds extends TFInfoNameMapper with Product with Serializable
  48. object TokenTypeIdsV1 extends TFInfoNameMapper with Product with Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped