mercredi 29 avril 2020

Run Tensorflow unit tests for a single file, but output nothing

I want to run unit test for a single file in TensorFlow. I use this command:

bazel run -c opt //tensorflow/core/kernels:unique_op_test

But the result is:

INFO: Found 1 target...
Target //tensorflow/core/kernels:unique_op_test up-to-date:
  bazel-bin/tensorflow/core/kernels/unique_op_test
INFO: Elapsed time: 0.528s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //tensorflow/core/kernels:unique_op_test
-----------------------------------------------------------------------------
Running main() from test_main.cc
[==========] Running 0 tests from 0 test suites.
[==========] 0 tests from 0 test suites ran. (0 ms total)
[  PASSED  ] 0 tests.

It seems that no test is run. Is there any option missing ?

I don't edit the source code file. The version of TensorFlow I use is 1.15 and the Bazel is 0.26.1

Aucun commentaire:

Enregistrer un commentaire