Unverified Commit d8d43898 authored by FredZhang's avatar FredZhang Committed by GitHub
Browse files

wrong code in programmer's guide in Variable Section

In Programmer's guide Variable section

the assignment variable is a `tf.Tensor` and should use `assignment.op.run()` instead of `assignment.run()`
Otherwise, this code would produce an error:
```
AttributeError: 'Tensor' object has no attribute 'run'
```
Or we can use sess.run(assignment) to finish this assignment operation
parent 8a4d8496
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment