The tf.py_func(func, inp, Tout) operator creates a TensorFlow operation that calls a Python function, func on a list of tensors inp.
See the documentation for tf.py_func(func, inp, Tout).
Warning: The tf.py_func() operation will only run on CPU. If you are using distributed TensorFlow, the tf.py_f...