Packages

o

com.johnsnowlabs.ml.tensorflow.sign

ModelSignatureManager

object ModelSignatureManager

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

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. val KnownProviders: Array[String]
  5. def apply(tfSignatureType: String = "TF1", tokenIdsValue: String = ModelSignatureConstants.InputIdsV1.value, maskIdsValue: String = ModelSignatureConstants.AttentionMaskV1.value, segmentIdsValue: String = ModelSignatureConstants.TokenTypeIdsV1.value, embeddingsValue: String = ModelSignatureConstants.LastHiddenStateV1.value, sentenceEmbeddingsValue: String = ModelSignatureConstants.PoolerOutputV1.value): Map[String, String]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def classifyProvider(signDefNames: Map[String, String], modelProvider: Option[String] = None): String

    Extract the model provider counting the signature pattern matches

    Extract the model provider counting the signature pattern matches

    signDefNames

    : the candidate signature definitions inputs and outputs

    modelProvider

    : the true model provider in between TF1 and TF2 to evaluate

    returns

    : the model provider name in between TF1 and TF2

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  9. def convertToAdoptedKeys(matched: Map[String, String]): Map[String, String]

    Return a formatted map of key -> value for model signature objects

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def extractSignatures(model: SavedModelBundle, saverDef: SaverDef): Option[Map[String, String]]

    Extract input and output signatures from TF saved models

    Extract input and output signatures from TF saved models

    model

    loaded SavedModelBundle

    returns

    the list ot matching signatures as tuples

  13. def findTFKeyMatch(candidate: String, pattern: Regex): Boolean

    Regex matcher

  14. def getAttentionMaskIdsKey: String
  15. def getAttentionMaskIdsValue: String
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  17. def getInputIdsKey: String
  18. def getInputIdsValue: String
  19. def getLastHiddenStateKey: String
  20. def getLastHiddenStateValue: String
  21. def getPoolerOutputKey: String
  22. def getPoolerOutputValue: String
  23. def getSignaturesFromModel(model: SavedModelBundle): Map[String, String]

    Extract signatures from actual model

    Extract signatures from actual model

    model

    : a SavedModelBundle object

    returns

    a list of tuples of type (OperationType, key, TFInfoName)

  24. def getTokenTypeIdsKey: String
  25. def getTokenTypeIdsValue: String
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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