Mod

功能

执行元素二进制模数(支持numpy风格的广播)。余数的符号与除数的符号相同。

边界

【输入】

A:tensor(uint8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(int8), tensor(int16), tensor(int32), tensor(int64), tensor(float16), tensor(float), tensor(double), tensor(bfloat16)

B:tensor(uint8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(int8), tensor(int16), tensor(int32), tensor(int64), tensor(float16), tensor(float), tensor(double), tensor(bfloat16)

【输出】

C:,类型:tensor(uint8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(int8), tensor(int16), tensor(int32), tensor(int64), tensor(float16), tensor(float), tensor(double), tensor(bfloat16)

【属性】

fmod:int,默认值:0

【约束】

当输入类型为浮点时,fmod不支持为0

支持的ONNX版本

Opset v10/v11/v12/v13