[英]Optimization flags in Bazel while running TensorFlow Tests
使用bazel test
命令運行TensorFlow測試時,我可以看到一些由於斷言錯誤(與預期公差略有偏差)而失敗的測試,在通過-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
模式在少數平台上是否返回意外結果?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.