运行 TensorFlow 测试时 Bazel 中的优化标志
Optimization flags in Bazel while running TensorFlow Tests
虽然 运行ning TensorFlow 使用 bazel test
命令进行测试,但我可以看到一些测试由于断言错误(与预期容差的轻微偏差)而失败,当 运行 时通过-c dbg
如下:
bazel test -c dbg //tensorflow/python:training_ops_test
然而,这失败了:
bazel test -c opt //tensorflow/python:training_ops_test
bazel test //tensorflow/python:training_ops_test
因此,根据 Bazel,--compilation_mode [-c]
可以是 fastbuild、dbg 或 opt;默认值:"fastbuild".
opt or fastbuild
模式是否会在少数平台上出现 return 意外结果?
虽然 运行ning TensorFlow 使用 bazel test
命令进行测试,但我可以看到一些测试由于断言错误(与预期容差的轻微偏差)而失败,当 运行 时通过-c dbg
如下:
bazel test -c dbg //tensorflow/python:training_ops_test
然而,这失败了:
bazel test -c opt //tensorflow/python:training_ops_test
bazel test //tensorflow/python:training_ops_test
因此,根据 Bazel,--compilation_mode [-c]
可以是 fastbuild、dbg 或 opt;默认值:"fastbuild".
opt or fastbuild
模式是否会在少数平台上出现 return 意外结果?