Update README.md

bytestring over the use of decode()
This commit is contained in:
Alan Yee 2020-02-24 10:18:21 -08:00 committed by GitHub
parent 7f3d27de6f
commit 0d402148f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,8 +69,8 @@ $ python
>>> tf.add(1, 2).numpy()
3
>>> hello = tf.constant('Hello, TensorFlow!')
>>> hello.numpy().decode('utf-8')
'Hello, TensorFlow!'
>>> hello.numpy()
b'Hello, TensorFlow!'
```
For more examples, see the