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. Protected

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(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  9. 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

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

    Convert signatures key names to normalize naming conventions

  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. case object AttentionMask extends TFInfoNameMapper with Product with Serializable
  22. case object AttentionMaskV1 extends TFInfoNameMapper with Product with Serializable
  23. case object AudioValuesInput extends TFInfoNameMapper with Product with Serializable
  24. case object CachedDecoderEncoderAttentionMask extends TFInfoNameMapper with Product with Serializable
  25. case object CachedDecoderEncoderInputIds extends TFInfoNameMapper with Product with Serializable
  26. case object CachedDecoderInputCache1 extends TFInfoNameMapper with Product with Serializable
  27. case object CachedDecoderInputCache2 extends TFInfoNameMapper with Product with Serializable
  28. case object CachedDecoderInputIds extends TFInfoNameMapper with Product with Serializable
  29. case object CachedEncoderOutput extends TFInfoNameMapper with Product with Serializable
  30. case object CachedLogitsOutput extends TFInfoNameMapper with Product with Serializable
  31. case object CachedOutPut2 extends TFInfoNameMapper with Product with Serializable
  32. case object CachedOutput1 extends TFInfoNameMapper with Product with Serializable
  33. case object DType extends TFInfoDescriptor with Product with Serializable
  34. case object DecoderAttentionMask extends TFInfoNameMapper with Product with Serializable
  35. case object DecoderCachedCache1Key extends TFInfoNameMapper with Product with Serializable
  36. case object DecoderCachedCache2Key extends TFInfoNameMapper with Product with Serializable
  37. case object DecoderCachedEncoderAttentionKey extends TFInfoNameMapper with Product with Serializable
  38. case object DecoderCachedEncoderStateKey extends TFInfoNameMapper with Product with Serializable
  39. case object DecoderCachedInputIdsKey extends TFInfoNameMapper with Product with Serializable
  40. case object DecoderCachedOutput extends TFInfoNameMapper with Product with Serializable
  41. case object DecoderCachedOutputCache1Key extends TFInfoNameMapper with Product with Serializable
  42. case object DecoderCachedOutputCache2Key extends TFInfoNameMapper with Product with Serializable
  43. case object DecoderCachedOutputKey extends TFInfoNameMapper with Product with Serializable
  44. case object DecoderEncoderAttentionMask extends TFInfoNameMapper with Product with Serializable
  45. case object DecoderEncoderInputIds extends TFInfoNameMapper with Product with Serializable
  46. case object DecoderInitOutputCache1Key extends TFInfoNameMapper with Product with Serializable
  47. case object DecoderInitOutputCache2Key extends TFInfoNameMapper with Product with Serializable
  48. case object DecoderInputIds extends TFInfoNameMapper with Product with Serializable
  49. case object DecoderOutput extends TFInfoNameMapper with Product with Serializable
  50. case object DimCount extends TFInfoDescriptor with Product with Serializable
  51. case object EncoderAttentionMask extends TFInfoNameMapper with Product with Serializable
  52. case object EncoderContextMask extends TFInfoNameMapper with Product with Serializable
  53. case object EncoderInputIds extends TFInfoNameMapper with Product with Serializable
  54. case object EncoderOutput extends TFInfoNameMapper with Product with Serializable
  55. case object EndLogitsOutput extends TFInfoNameMapper with Product with Serializable
  56. case object InitCachedOutPut2 extends TFInfoNameMapper with Product with Serializable
  57. case object InitCachedOutput1 extends TFInfoNameMapper with Product with Serializable
  58. case object InitDecoderEncoderAttentionMask extends TFInfoNameMapper with Product with Serializable
  59. case object InitDecoderEncoderInputIds extends TFInfoNameMapper with Product with Serializable
  60. case object InitDecoderInputIds extends TFInfoNameMapper with Product with Serializable
  61. case object InitLogitsOutput extends TFInfoNameMapper with Product with Serializable
  62. case object InputIds extends TFInfoNameMapper with Product with Serializable
  63. case object InputIdsV1 extends TFInfoNameMapper with Product with Serializable
  64. case object LastHiddenState extends TFInfoNameMapper with Product with Serializable
  65. case object LastHiddenStateV1 extends TFInfoNameMapper with Product with Serializable
  66. case object LogitsOutput extends TFInfoNameMapper with Product with Serializable
  67. case object Name extends TFInfoDescriptor with Product with Serializable
  68. case object PixelValuesInput extends TFInfoNameMapper with Product with Serializable
  69. case object PoolerOutput extends TFInfoNameMapper with Product with Serializable
  70. case object PoolerOutputV1 extends TFInfoNameMapper with Product with Serializable
  71. case object SerializedSize extends TFInfoDescriptor with Product with Serializable
  72. case object ShapeDimList extends TFInfoDescriptor with Product with Serializable
  73. case object StartLogitsOutput extends TFInfoNameMapper with Product with Serializable
  74. case object TapasLogitsAggregationOutput extends TFInfoNameMapper with Product with Serializable
  75. case object TapasLogitsOutput extends TFInfoNameMapper with Product with Serializable
  76. case object TokenTypeIds extends TFInfoNameMapper with Product with Serializable
  77. case object TokenTypeIdsV1 extends TFInfoNameMapper with Product with Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped