ai.onnx.ml - 标准化器¶
标准化器 - 1 (ai.onnx.ml)¶
版本¶
领域:
ai.onnx.mlsince_version:
1函数:
Falsesupport_level:
SupportType.COMMON形状推断:
False
此版本的运算符自ai.onnx.ml域的第1版起已可用。
摘要¶
Normalize the input. There are three normalization modes, which have the corresponding formulas,
defined using element-wise infix operators '/' and '^' and tensor-wide functions 'max' and 'sum':<br>
Max: Y = X / max(X)
L1: Y = X / sum(X)
L2: Y = sqrt(X^2 / sum(X^2)}
In all modes, if the divisor is zero, Y == X.
For batches, that is, [N,C] tensors, normalization is done along the C axis. In other words, each row of the batch is normalized independently.
属性¶
norm - 字符串 (默认是
'MAX'):其中之一是‘MAX,’ ‘L1,’ ‘L2’
输入¶
X (异构) - T:
要编码的数据,形状为[N,C]或[C]的张量
输出¶
Y (异构) - tensor(float):
编码输出数据
类型约束¶
T 在 (
tensor(double),tensor(float),tensor(int32),tensor(int64)) 中:输入必须是一个数值类型的张量。