-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Description
For the following LayerNormalization node,

there seems to be a regression since v1.21 where it complains
Status Message: Size of X.shape[axis:] must be larger than 1, got 1
Granted, computing LayerNorm on just 1 value is pointless since the standard deviation become 0+eps and you're essentially rescaling by 1/sqrt(eps), but it should still be a valid computation and the ONNX spec does not forbit it. Imposing this additional constraint in onnxruntime causes some older models to fail on this. Any thoughts?
Metadata
Metadata
Assignees
Labels
No labels