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

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 = ..., maskIdsValue: String = ..., segmentIdsValue: String = ..., embeddingsValue: String = ..., sentenceEmbeddingsValue: String = ...): 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( ... ) @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: Any): 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 finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def findTFKeyMatch(candidate: String, pattern: Regex): Boolean

    Regex matcher

  15. def getAttentionMaskIdsKey: String
  16. def getAttentionMaskIdsValue: String
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getInputIdsKey: String
  19. def getInputIdsValue: String
  20. def getLastHiddenStateKey: String
  21. def getLastHiddenStateValue: String
  22. def getPoolerOutputKey: String
  23. def getPoolerOutputValue: String
  24. 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)

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

Inherited from AnyRef

Inherited from Any

Ungrouped