conv bug fix (#154)
This commit is contained in:
parent
2b6befce87
commit
20dd6544aa
|
@ -181,7 +181,7 @@ struct ONNXConvOpLowering : public ConversionPattern {
|
|||
biasIndices.emplace_back(kernel);
|
||||
auto loadBias = rewriter.create<LoadOp>(loc, biasOperand, kernel);
|
||||
auto resultWithBias =
|
||||
rewriter.create<MulFOp>(loc, loadResult, loadBias);
|
||||
rewriter.create<AddFOp>(loc, loadResult, loadBias);
|
||||
// Store initializer value into output location.
|
||||
rewriter.create<StoreOp>(loc, resultWithBias, alloc, resultIndices);
|
||||
}
|
||||
|
|
|
@ -1395,7 +1395,7 @@ func @test_conv_bias_no_pad(%arg0 : tensor<1x2x32x64xf32>, %arg1 : tensor<5x2x6x
|
|||
// CHECK: }
|
||||
// CHECK: [[BIAS1:%.+]] = load [[RES]][%arg3, %arg4, %arg5, %arg6] : memref<1x5x27x58xf32>
|
||||
// CHECK: [[BIAS2:%.+]] = load %arg2[%arg4] : memref<5xf32>
|
||||
// CHECK: [[BIAS3:%.+]] = mulf [[BIAS1]], [[BIAS2]] : f32
|
||||
// CHECK: [[BIAS3:%.+]] = addf [[BIAS1]], [[BIAS2]] : f32
|
||||
// CHECK: store [[BIAS3]], [[RES]][%arg3, %arg4, %arg5, %arg6] : memref<1x5x27x58xf32>
|
||||
// CHECK: }
|
||||
// CHECK: }
|
||||
|
|
Loading…
Reference in New Issue