What is the difference between tf.initialize_all_variables() and tf.initialize_local_variables()?

前端 未结 3 919
梦谈多话
梦谈多话 2020-12-31 19:52

I am reviewing the code in this example: fully_connected_reader.py

I am confused with Line 147 and 148:

init_op = tf.group(tf.initialize_all_variable         


        
3条回答
  •  独厮守ぢ
    2020-12-31 20:48

    • GLOBAL_VARIABLES

    Key to collect Variable objects that are global (shared across machines). Default collection for all variables, except local ones.

    • LOCAL_VARIABLES

    Key to collect local variables that are local to the machine and are not saved/restored.

提交回复
热议问题