While running TensorFlow tests using bazel test
command, I can see some tests which fail due to assertion error(slight deviation from the expected tolerance), pass when run with -c dbg
as below:
bazel test -c dbg //tensorflow/python:training_ops_test
While, this fails:
bazel test -c opt //tensorflow/python:training_ops_test
bazel test //tensorflow/python:training_ops_test
So as per Bazel, --compilation_mode [-c]
can be fastbuild, dbg or opt; default: "fastbuild".
Does the opt or fastbuild
mode return unexpected result on few platforms?