Skip to content

Commit 756810f

Browse files
xiuxin121newway
authored andcommitted
[xpu] delete kernel.precision()==float (PaddlePaddle#9189)
1 parent 51768ed commit 756810f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lite/core/optimizer/mir/__xpu__static_kernel_pick_pass.h

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class XPUStaticKernelPickPass : public mir::StmtPass {
9494

9595
if (kernel_pick_factors_.IsPrecisionConsidered() &&
9696
(place.precision == kernel.precision() ||
97-
kernel.precision() == PRECISION(kFloat) ||
9897
kernel.precision() == PRECISION(kAny) ||
9998
place.precision == PRECISION(kAny))) {
10099
// score skipped, if kernel is int8, but op is not int8

0 commit comments

Comments
 (0)