Home > other >  Run your Tensorflow program print sess. Run (hello) this line error, don't know if you don'
Run your Tensorflow program print sess. Run (hello) this line error, don't know if you don'

Time:04-24



Business code would only write four years of development, the distributed high concurrency also can't be a programmer? ->>


The import tensorflow as tf

Hello=tf. Constant (' hello, TensorFlow! ')

Sess=tf. The Session ()

Print sess. Run (hello)

Hello, TensorFlow!

A=tf. Constant (10)

B=tf. Constant (32)

Print sess. Run (a + b)

42

CodePudding user response:

Add parentheses after the print
  • Related