Should I configure PyCharm to redirect the standard output ?


I am almost convinced that this code prints to some output which PyCharm doesn't show. It is Tensorflow that is printing.

I see normal Python print statements properly.

Where do I see PyCharm's stderr display ? It may be going there.

My console shows only this.

D:\Development_Avecto\Anaconda\envs\tensorflow\python.exe D:/Development_Avector/PycharmProjects/TensorFlow/
D:\Development_Avecto\Anaconda\envs\tensorflow\lib\site-packages\h5py\ FutureWarning: Conversion of the second argument of issub
dtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters

Process finished with exit code 0

def printtest():
x = tf.placeholder(tf.float32, shape=[2, 2, 2])
a = np.array([[[1., 1.], [1., 1.]], [[2., 2.], [2., 2.]]])
m = tf.Print(x, [x])
1 comment
Comment actions Permalink

So I misunderstood what code is required. This shouldn't be asked here.


Please sign in to leave a comment.