aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/g3doc/how_tos/adding_an_op/fact_test.py
blob: 17a7028d98242eab7642b7bdb0ed25bab6469638 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()