美文网首页
FailedPreconditionError: Attempt

FailedPreconditionError: Attempt

作者: geofer | 来源:发表于2017-07-24 09:24 被阅读0次

    initialize_local_variables is not included in initialize_all_variables. If you remove the num_epochs argument, your graph shouldn't have any local variables, which should be why it works in this case. If you are really running initialize_local_variables, then something else seems to be going on.

    init_op = tf.group(tf.global_variables_initializer(), tf.local_variables_initializer())
    sess.run(init_op)
    
    

    ref:

    相关文章

      网友评论

          本文标题:FailedPreconditionError: Attempt

          本文链接:https://www.haomeiwen.com/subject/yddykxtx.html