public class MxOpParams
extends ai.djl.util.PairList<java.lang.String,java.lang.Object>
| Constructor and Description |
|---|
MxOpParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(java.lang.String paramName,
boolean value)
Adds a parameter.
|
void |
addParam(java.lang.String paramName,
double value)
Adds a parameter.
|
void |
addParam(java.lang.String paramName,
float value)
Adds a parameter.
|
void |
addParam(java.lang.String paramName,
int value)
Adds a parameter.
|
void |
addParam(java.lang.String paramName,
long value)
Adds a parameter.
|
void |
addParam(java.lang.String paramName,
java.lang.Number value)
Adds a parameter.
|
void |
addParam(java.lang.String paramName,
ai.djl.ndarray.types.Shape shape)
Adds a parameter.
|
void |
addParam(java.lang.String paramName,
java.lang.String value)
Adds a parameter.
|
void |
addTupleParam(java.lang.String paramName,
float... tuple)
Adds a parameter with tuple value.
|
void |
addTupleParam(java.lang.String paramName,
int... tuple)
Adds a parameter with tuple value.
|
void |
addTupleParam(java.lang.String paramName,
long... tuple)
Adds a parameter with tuple value.
|
void |
setDataType(ai.djl.ndarray.types.DataType dataType)
Sets the dataType to use for the operation.
|
void |
setDevice(ai.djl.Device device)
Sets the device to use for the operation.
|
void |
setParam(java.lang.String paramName,
java.lang.String value)
Sets a (potentially existing) parameter to a new value.
|
void |
setShape(ai.djl.ndarray.types.Shape shape)
Sets the Shape parameter.
|
void |
setSparseFormat(ai.djl.ndarray.types.SparseFormat sparseFormat)
Sets the sparseFormat to use for the operation.
|
add, add, add, addAll, contains, get, isEmpty, iterator, keyArray, keyAt, keys, remove, remove, size, stream, subList, subList, toMap, toMap, unique, valueArray, valueAt, valuespublic void setShape(ai.djl.ndarray.types.Shape shape)
shape - the shape to setpublic void setDevice(ai.djl.Device device)
device - the device to use for the operationpublic void setDataType(ai.djl.ndarray.types.DataType dataType)
dataType - the dataType to use for the operationpublic void setSparseFormat(ai.djl.ndarray.types.SparseFormat sparseFormat)
sparseFormat - the sparseFormat to use for the operationpublic void setParam(java.lang.String paramName,
java.lang.String value)
paramName - the parameter name to updatevalue - the value to set the parameter topublic void addParam(java.lang.String paramName,
ai.djl.ndarray.types.Shape shape)
paramName - the name of the new parametershape - the value of the new parameterpublic void addParam(java.lang.String paramName,
java.lang.String value)
paramName - the name of the new parametervalue - the value of the new parameterpublic void addParam(java.lang.String paramName,
int value)
paramName - the name of the new parametervalue - the value of the new parameterpublic void addParam(java.lang.String paramName,
long value)
paramName - the name of the new parametervalue - the value of the new parameterpublic void addParam(java.lang.String paramName,
double value)
paramName - the name of the new parametervalue - the value of the new parameterpublic void addParam(java.lang.String paramName,
float value)
paramName - the name of the new parametervalue - the value of the new parameterpublic void addParam(java.lang.String paramName,
boolean value)
paramName - the name of the new parametervalue - the value of the new parameterpublic void addParam(java.lang.String paramName,
java.lang.Number value)
paramName - the name of the new parametervalue - the value of the new parameterpublic void addTupleParam(java.lang.String paramName,
int... tuple)
paramName - the name of the new parametertuple - the values of the new parameterpublic void addTupleParam(java.lang.String paramName,
long... tuple)
paramName - the name of the new parametertuple - the values of the new parameterpublic void addTupleParam(java.lang.String paramName,
float... tuple)
paramName - the name of the new parametertuple - the values of the new parameter