如何运行TensorFlow C ++测试用例?

我想在tensorflow c ++代码中运行ring reducer测试用例,该测试用例可以在tensorflow/core/common_runtime/ring_reducer_test.cc中找到,但是我不知道如何运行该测试用例。运行bazel test -c opt --config=cuda //tensorflow/core:ring_reducer_test会导致错误:

debian ~/collective/tensorflow $ bazel test -c opt --config=cuda //tensorflow/core:ring_reducer_test
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags,repeats are counted twice and may lead to unexpected behavior.
ERROR: Skipping '//tensorflow/core:ring_reducer_test': no such target '//tensorflow/core:ring_reducer_test': target 'ring_reducer_test' not declared in package 'tensorflow/core' defined by /home/zxy/collective/tensorflow/tensorflow/core/BUILD
ERROR: no such target '//tensorflow/core:ring_reducer_test': target 'ring_reducer_test' not declared in package 'tensorflow/core' defined by /home/zxy/collective/tensorflow/tensorflow/core/BUILD
INFO: Elapsed time: 0.212s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

在运行configure之前,我已经运行过bazel test个脚本。

有人知道如何在ring_reducer_test.cc中运行测试用例吗?

cjh1031 回答:如何运行TensorFlow C ++测试用例?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3154293.html

大家都在问