astorfi / TensorFlow-World

:earth_americas: Simple and ready-to-use tutorials for TensorFlow
MIT License
4.52k stars 416 forks source link

a small mistake in doc #30

Open Xiaokeai18 opened 5 years ago

Xiaokeai18 commented 5 years ago

In the tutorial doc of chapter 1 "Basics/variables", there might be a misktake here:

# "variable_list_custom" is the list of variables that we want to initialize.
variable_list_custom = [weights, custom_variable]

# The initializer
init_custom_op = tf.variables_initializer(var_list=all_variables_list)

The last line of the code above might end up with var_list=variable_list_custom, not all_variables_list.

Here's url of the doc: https://github.com/astorfi/TensorFlow-World/tree/master/docs/tutorials/1-basics/variables#initializing-specific-variables Thank you for your repo, it helps me a lot.