diff options
Diffstat (limited to 'tensorflow/g3doc/how_tos/adding_an_op/fact_test.py')
-rw-r--r-- | tensorflow/g3doc/how_tos/adding_an_op/fact_test.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tensorflow/g3doc/how_tos/adding_an_op/fact_test.py b/tensorflow/g3doc/how_tos/adding_an_op/fact_test.py new file mode 100644 index 0000000000..17a7028d98 --- /dev/null +++ b/tensorflow/g3doc/how_tos/adding_an_op/fact_test.py @@ -0,0 +1,16 @@ +"""Test that user ops can be used as expected.""" + +import tensorflow.python.platform + +import tensorflow as tf + + +class FactTest(tf.test.TestCase): + + def test(self): + with self.test_session(): + print tf.user_ops.my_fact().eval() + + +if __name__ == '__main__': + tf.test.main() |