Set fuse_all_reduce_ops=false for quantization test, test=develop (#23413)

revert-23830-2.0-beta
cc 5 years ago committed by GitHub
parent 7ca836d3da
commit 3ea7c59f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -316,6 +316,7 @@ class TestQuantizationFreezePass(unittest.TestCase):
build_strategy = fluid.BuildStrategy()
build_strategy.memory_optimize = False
build_strategy.enable_inplace = False
build_strategy.fuse_all_reduce_ops = False
binary = fluid.CompiledProgram(main_graph.graph).with_data_parallel(
loss_name=loss.name, build_strategy=build_strategy)
quantized_test_program = test_graph.to_program()

@ -131,6 +131,7 @@ class TestQuantizationScalePass(unittest.TestCase):
build_strategy = fluid.BuildStrategy()
build_strategy.memory_optimize = False
build_strategy.enable_inplace = False
build_strategy.fuse_all_reduce_ops = False
binary = fluid.CompiledProgram(main_graph.graph).with_data_parallel(
loss_name=loss.name, build_strategy=build_strategy)
iters = 5

Loading…
Cancel
Save