class ClusterServingHelper extends Serializable
The helper of Cluster Serving by default, all parameters are loaded by config including model directory However, in some condition, models are distributed to remote machine and locate in tmp directory, but other configs are still needed. Thus model directory could be passed and overwrite that in config YAML
- Alphabetic
- By Inheritance
- ClusterServingHelper
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ClusterServingHelper()
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
- var blasFlag: Boolean
- var chwFlag: Boolean
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- var configPath: String
- var coreNumberPerMachine: Int
- var defPath: 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] )
- var flinkRestUrl: String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCoreNumberPerMachine(): Int
- def getFlinkRestUrl(): String
- def getImageResize(): String
- def getInputAlreadyBatched(): Boolean
- def getJobName(): String
- def getKafkaUrl(): String
- def getModelEncrypted(): Boolean
- def getModelParallelism(): Int
- def getModelPath(): String
- def getPostProcessing(): String
- def getQueueUsed(): String
- def getRecordEncrypted(): Boolean
- def getRedisMaxMemory(): String
- def getRedisSecureEnabled(): Boolean
- def getRedisSecureTrustStorePassword(): String
- def getRedisSecureTrustStorePath(): String
- def getRedisTimeout(): Int
- def getRedisUrl(): String
- def getThreadPerModel(): Int
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- var imageResize: String
- var inputAlreadyBatched: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var jobName: String
- var kafkaUrl: String
-
def
loadInferenceModel(concurrentNum: Int = 0): InferenceModel
Load inference model The concurrent number of inference model depends on backend engine type
-
def
logError(msg: String): Unit
Log error message to local log file
- var modelEncrypted: Boolean
- var modelParallelism: Int
- var modelPath: String
- var modelType: String
-
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()
- def parseConfigStrings(): Unit
-
def
parseModelType(location: String): Unit
Infer the model type in model directory Try every file in the directory, infer which are the model definition file and model weight file
- var postProcessing: String
- var queueUsed: String
- var recordEncrypted: Boolean
- var redisHost: String
- var redisMaxMemory: String
- var redisPort: Int
- var redisSecureEnabled: Boolean
- var redisSecureTrustStorePassword: String
- var redisSecureTrustStorePath: String
- var redisTimeout: Int
- var redisUrl: String
- var resize: Boolean
- def setCoreNumberPerMachine(arg0: Int): Unit
- def setFlinkRestUrl(arg0: String): Unit
- def setImageResize(arg0: String): Unit
- def setInputAlreadyBatched(arg0: Boolean): Unit
- def setJobName(arg0: String): Unit
- def setKafkaUrl(arg0: String): Unit
- def setModelEncrypted(arg0: Boolean): Unit
- def setModelParallelism(arg0: Int): Unit
- def setModelPath(arg0: String): Unit
- def setPostProcessing(arg0: String): Unit
- def setQueueUsed(arg0: String): Unit
- def setRecordEncrypted(arg0: Boolean): Unit
- def setRedisMaxMemory(arg0: String): Unit
- def setRedisSecureEnabled(arg0: Boolean): Unit
- def setRedisSecureTrustStorePassword(arg0: String): Unit
- def setRedisSecureTrustStorePath(arg0: String): Unit
- def setRedisTimeout(arg0: Int): Unit
- def setRedisUrl(arg0: String): Unit
- def setThreadPerModel(arg0: Int): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- var threadPerModel: Int
-
def
throwOneModelError(modelType: Boolean, defPath: Boolean, weightPath: Boolean): Unit
To check if there already exists detected defPath or weightPath
To check if there already exists detected defPath or weightPath
- defPath
Boolean, true means need to check if it is not null
- weightPath
Boolean, true means need to check if it is not null
-
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()
- var weightPath: String