Как запустить тестовый пример TensorFlow c ++? - PullRequest
0 голосов
/ 06 ноября 2019

Я хочу запустить тестовый пример с кольцевым редуктором в коде tenorflow c ++, тестовый пример можно найти в 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

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...