object ModelSignatureManager
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ModelSignatureManager
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val KnownProviders: Array[String]
- 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]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def convertToAdoptedKeys(matched: Map[String, String]): Map[String, String]
Return a formatted map of key -> value for model signature objects
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- def findTFKeyMatch(candidate: String, pattern: Regex): Boolean
Regex matcher
- def getAttentionMaskIdsKey: String
- def getAttentionMaskIdsValue: String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getInputIdsKey: String
- def getInputIdsValue: String
- def getLastHiddenStateKey: String
- def getLastHiddenStateValue: String
- def getPoolerOutputKey: String
- def getPoolerOutputValue: String
- 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)
- def getTokenTypeIdsKey: String
- def getTokenTypeIdsValue: String
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)