Class InferenceOptions
-
- All Implemented Interfaces:
public class InferenceOptions
Options class for controlling model inference.
-
-
Constructor Summary
Constructors Constructor Description InferenceOptions()
Initialize a new inference options set.
-
Method Summary
Modifier and Type Method Description String
getModelName()
void
setModelName(String name)
String
getLreKey()
void
setLreKey(String key)
String
getLrePasswd()
void
setLrePasswd(String passwd)
String
getDevice()
void
setDevice(String device)
void
addExcludedClass(String clazz)
Add an excluded class identifier. void
addIncludedClass(String clazz)
Add an included class identifier. DataType
getDataType()
boolean
isIncludedClass(String clazz)
Check whether a class label is included. void
setDataType(DataType type)
-
-
Method Detail
-
getModelName
String getModelName()
-
setModelName
void setModelName(String name)
-
getLrePasswd
String getLrePasswd()
-
setLrePasswd
void setLrePasswd(String passwd)
-
addExcludedClass
void addExcludedClass(String clazz)
Add an excluded class identifier.
- Parameters:
clazz
- the class identifier to exclude
-
addIncludedClass
void addIncludedClass(String clazz)
Add an included class identifier.
- Parameters:
clazz
- the class identifier to be added
-
getDataType
DataType getDataType()
-
isIncludedClass
boolean isIncludedClass(String clazz)
Check whether a class label is included.
- Parameters:
clazz
- the name of the class to check for- Returns:
true if the class is included
-
setDataType
void setDataType(DataType type)
-
-
-
-