Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: chentong319 <[email protected]>
  • Loading branch information
chentong319 committed Feb 21, 2024
1 parent 8f64328 commit 7f02511
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Transform/ONNX/Decompose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,8 @@ struct GroupNormIntoLayerNormPattern
Type inputShapeType =
RankedTensorType::get({inputRank}, rewriter.getI64Type());
Value inputShape = create.onnx.shape(inputShapeType, input);
Value Y = create.onnx.reshape(inputType, layerNormY, inputShape);
Type outputType = groupNormOp.getY().getType();
Value Y = create.onnx.reshape(outputType, layerNormY, inputShape);
// Replace operation.
rewriter.replaceOp(groupNormOp, Y);
return success();
Expand Down

0 comments on commit 7f02511

Please sign in to comment.