object LoadExternalModel
- Alphabetic
- By Inheritance
- LoadExternalModel
- AnyRef
- Any
- Hide All
- Show All
- 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def detectEngine(modelPath: String, isEncoderDecoder: Boolean = false, withPast: Boolean = false, isDecoder: Boolean = false): String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
generateRandomString(n: Int): String
Generates a random alphanumeric string of a given length.
Generates a random alphanumeric string of a given length.
- n
the length of the generated string
- returns
a random alphanumeric string of length n
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOnnxModel(modelPath: String, isEncoderDecoder: Boolean = false, withPast: Boolean = false, isDecoder: Boolean = false): Boolean
- def isOpenvinoModel(modelPath: String, isEncoderDecoder: Boolean): Boolean
- def isTensorFlowModel(modelPath: String): Boolean
-
def
loadJsonStringAsset(assetPath: String, assetName: String): String
- assetPath
path to root of assets directory
- assetName
asset's name
- returns
JSON as String to be parsed later
-
def
loadSentencePieceAsset(assetPath: String, assetName: String): SentencePieceWrapper
- assetPath
path to root of assets directory
- assetName
asset's name
- returns
SentencePieceWrapper
- def loadTextAsset(assetPath: String, assetName: String): Array[String]
-
def
modelSanityCheck(path: String, isEncoderDecoder: Boolean = false, withPast: Boolean = false, isDecoder: Boolean = false): (String, String)
Retrieves a local path for a model folder and detects DL engine
Retrieves a local path for a model folder and detects DL engine
If the model is at a remote location it will be downloaded and a local path provided. Otherwise an URL to the local path of the folder will be returned. This method also tests the sanity of the DL model while detecting the DL engine
- path
Local or Remote path of the model folder
- returns
URL to the local path of the folder
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val notSupportedEngineError: String
-
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()