BiasGelu (CPU)#
Domain:
com.microsoftDevice:
CPUKernel:
onnx_light_cpu::BiasGeluSupported types:
FLOAT,DOUBLE,FLOAT16,BFLOAT16Opset bounds: since opset 1
Operator support#
Capability |
Implementation |
|---|---|
Shape inference |
|
Peak memory |
|
Fusion patterns |
|
Gradient |
LightOpSchema#
Version: 1
Adds a rank-1 bias to the last input dimension and applies the exact Gaussian Error Linear Unit.
Inputs
A (
T): The input tensor.B (
T): The rank-1 bias whose length matches the last dimension of A.
Outputs
C (
T): The output tensor, with the same shape and type as A.
Type constraints
T: Constrain inputs and output to floating-point tensors. Allowed types: tensor(bfloat16), tensor(double), tensor(float), tensor(float16).