remove useless guard in gemm lowering
Validate Operations / validate-operations (push) Has been cancelled
Validate Operations / validate-operations (push) Has been cancelled
This commit is contained in:
@@ -502,9 +502,6 @@ LogicalResult GemmToSpatialComputeBatch::matchAndRewrite(ONNXGemmOp gemmOp,
|
|||||||
}
|
}
|
||||||
(void) bType;
|
(void) bType;
|
||||||
|
|
||||||
if (!isHostFoldableValue(b))
|
|
||||||
return failure();
|
|
||||||
|
|
||||||
Value sharedBias;
|
Value sharedBias;
|
||||||
if (hasC) {
|
if (hasC) {
|
||||||
auto scaledC = materializeScaledConstantTensor(c, gemmOpAdaptor.getBeta().convertToFloat(), rewriter, loc);
|
auto scaledC = materializeScaledConstantTensor(c, gemmOpAdaptor.getBeta().convertToFloat(), rewriter, loc);
|
||||||
|
|||||||
Reference in New Issue
Block a user