我想在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
中运行测试用例吗?