December 2018
Intermediate to advanced
318 pages
8h 28m
English
#package Importimport tensorflow as tensorFhello = tensorF.constant("Hello") world = tensorF.constant(" World!")
We begin by importing the TensorFlow package and loading the string:
helloworld=hello+worldwith tensorF.Session() as sess: answer = sess.run(helloworld)print (answer)
The preceding code is the most basic form of TensorFlow code that we will be writing. Later in this chapter, we will be dealing with examples that we looked at in the previous chapter.
Read now
Unlock full access