object ModelSignatureManager
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ModelSignatureManager
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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 = ..., maskIdsValue: String = ..., segmentIdsValue: String = ..., embeddingsValue: String = ..., sentenceEmbeddingsValue: String = ...): 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( ... ) @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: Any): 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
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findTFKeyMatch(candidate: String, pattern: Regex): Boolean
Regex matcher
- def getAttentionMaskIdsKey: String
- def getAttentionMaskIdsValue: String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()