module onnxrt.ops_cpu.op_scaler
#
Short summary#
module mlprodict.onnxrt.ops_cpu.op_scaler
Runtime operator.
Classes#
class |
truncated documentation |
---|---|
Scaler (ai.onnx.ml) =================== Rescale input data, for example to standardize features by removing the mean and … |
Properties#
property |
truncated documentation |
---|---|
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of modified parameters. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns all parameters in a dictionary. |
Methods#
method |
truncated documentation |
---|---|
Documentation#
Runtime operator.
- class mlprodict.onnxrt.ops_cpu.op_scaler.Scaler(ai.onnx.ml)#
Bases:
OpRunUnary
Rescale input data, for example to standardize features by removing the mean and scaling to unit variance.
Attributes
offset: First, offset by this. Can be length of features in an [N,F] tensor or length 1, in which case it applies to all features, regardless of dimension count. default value cannot be automatically retrieved (FLOATS)
scale: Second, multiply by this. Can be length of features in an [N,F] tensor or length 1, in which case it applies to all features, regardless of dimension count. Must be same length as ‘offset’ default value cannot be automatically retrieved (FLOATS)
Inputs
X (heterogeneous)T: Data to be scaled.
Outputs
Y (heterogeneous)tensor(float): Scaled output data.
Type Constraints
T tensor(float), tensor(double), tensor(int64), tensor(int32): The input must be a tensor of a numeric type.
Version
Onnx name: Scaler
This version of the operator has been available since version 1 of domain ai.onnx.ml.
Runtime implementation:
Scaler
- __init__(onnx_node, desc=None, **options)#
- _run(x, attributes=None, verbose=0, fLOG=None)#
Should be overwritten.
- _run_inplace(x)#
- _run_no_checks_(x, verbose=0, fLOG=None)#