{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2901","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2901/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2901/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2901/events","html_url":"https://github.com/tensorflow/tensorflow/issues/2901","id":160615180,"number":2901,"title":"problem in checkpoint","user":{"login":"MammadTavakoli","id":12212802,"avatar_url":"https://avatars.githubusercontent.com/u/12212802?v=3","gravatar_id":"","url":"https://api.github.com/users/MammadTavakoli","html_url":"https://github.com/MammadTavakoli","followers_url":"https://api.github.com/users/MammadTavakoli/followers","following_url":"https://api.github.com/users/MammadTavakoli/following{/other_user}","gists_url":"https://api.github.com/users/MammadTavakoli/gists{/gist_id}","starred_url":"https://api.github.com/users/MammadTavakoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MammadTavakoli/subscriptions","organizations_url":"https://api.github.com/users/MammadTavakoli/orgs","repos_url":"https://api.github.com/users/MammadTavakoli/repos","events_url":"https://api.github.com/users/MammadTavakoli/events{/privacy}","received_events_url":"https://api.github.com/users/MammadTavakoli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/triaged","name":"triaged","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-16T09:18:52Z","updated_at":"2016-06-21T20:46:49Z","closed_at":"2016-06-21T20:39:02Z","body":"I used tf 0.9. \r\n\r\nWhen I restore the checkpoint i get the error:\r\n\r\nTraceback (most recent call last):\r\n\r\n  File \"<ipython-input-42-7082fb551371>\", line 1, in <module>\r\n    runfile('/media/m/E/Deep/proj/1/t.py', wdir='/media/m/E/Deep/proj/1')\r\n\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py\", line 714, in runfile\r\n    execfile(filename, namespace)\r\n\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py\", line 89, in execfile\r\n    exec(compile(f.read(), filename, 'exec'), namespace)\r\n\r\n  File \"/media/m/E/Deep/proj/1/t.py\", line 70, in <module>\r\n    saver.restore(sess, ckpt.model_checkpoint_path) # restore all variables\r\n\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/saver.py\", line 1105, in restore\r\n    {self.saver_def.filename_tensor_name: save_path})\r\n\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py\", line 333, in run\r\n    The optional `options` argument expects a [`RunOptions`] proto. The options\r\n\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py\", line 573, in _run\r\n    elif isinstance(fetches, dict):\r\n\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py\", line 648, in _do_run\r\n    for fetch, result in zip(unique_fetches, results):\r\n\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py\", line 668, in _do_call\r\n    \"\"\"Runs a step based on the given fetches and feeds.\r\n\r\nNotFoundError: Tensor name \"global_step_7\" not found in checkpoint files ./ckpt_dir/model.ckpt-0\r\n\t [[Node: save_18/restore_slice_438 = RestoreSlice[dt=DT_INT32, preferred_shard=-1, _device=\"/job:localhost/replica:0/task:0/cpu:0\"](_recv_save_18/Const_0, save_18/restore_slice_438/tensor_name, save_18/restore_slice_438/shape_and_slice)]]\r\nCaused by op 'save_18/restore_slice_438', defined at:\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/spyderlib/widgets/externalshell/start_ipython_kernel.py\", line 205, in <module>\r\n    __ipythonkernel__.start()\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/ipykernel/kernelapp.py\", line 442, in start\r\n    ioloop.IOLoop.instance().start()\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/zmq/eventloop/ioloop.py\", line 162, in start\r\n    super(ZMQIOLoop, self).start()\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tornado/ioloop.py\", line 883, in start\r\n    handler_func(fd_obj, events)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tornado/stack_context.py\", line 275, in null_wrapper\r\n    return fn(*args, **kwargs)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/zmq/eventloop/zmqstream.py\", line 440, in _handle_events\r\n    self._handle_recv()\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/zmq/eventloop/zmqstream.py\", line 472, in _handle_recv\r\n    self._run_callback(callback, msg)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/zmq/eventloop/zmqstream.py\", line 414, in _run_callback\r\n    callback(*args, **kwargs)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tornado/stack_context.py\", line 275, in null_wrapper\r\n    return fn(*args, **kwargs)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/ipykernel/kernelbase.py\", line 276, in dispatcher\r\n    return self.dispatch_shell(stream, msg)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/ipykernel/kernelbase.py\", line 228, in dispatch_shell\r\n    handler(stream, idents, msg)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/ipykernel/kernelbase.py\", line 391, in execute_request\r\n    user_expressions, allow_stdin)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/ipykernel/ipkernel.py\", line 199, in do_execute\r\n    shell.run_cell(code, store_history=store_history, silent=silent)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/IPython/core/interactiveshell.py\", line 2723, in run_cell\r\n    interactivity=interactivity, compiler=compiler, result=result)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/IPython/core/interactiveshell.py\", line 2831, in run_ast_nodes\r\n    if self.run_code(code, result):\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/IPython/core/interactiveshell.py\", line 2885, in run_code\r\n    exec(code_obj, self.user_global_ns, self.user_ns)\r\n  File \"<ipython-input-42-7082fb551371>\", line 1, in <module>\r\n    runfile('/media/m/E/Deep/proj/1/t.py', wdir='/media/m/E/Deep/proj/1')\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py\", line 714, in runfile\r\n    execfile(filename, namespace)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py\", line 89, in execfile\r\n    exec(compile(f.read(), filename, 'exec'), namespace)\r\n  File \"/media/m/E/Deep/proj/1/t.py\", line 57, in <module>\r\n    saver = tf.train.Saver()\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/saver.py\", line 845, in __init__\r\n    restore_sequentially=restore_sequentially)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/saver.py\", line 515, in build\r\n    filename_tensor, vars_to_save, restore_sequentially, reshape)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/saver.py\", line 271, in _AddRestoreOps\r\n    values = self.restore_op(filename_tensor, vs, preferred_shard)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/saver.py\", line 186, in restore_op\r\n    preferred_shard=preferred_shard)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/io_ops.py\", line 201, in _restore_slice\r\n    file_pattern, tensor_name, shape_and_slice, base_type,\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/gen_io_ops.py\", line 325, in _restore_slice\r\n    def _restore_slice(file_pattern, tensor_name, shape_and_slice, dt,\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/op_def_library.py\", line 704, in apply_op\r\n    op_def=op_def)\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py\", line 2249, in create_op\r\n    # specified for this op_type.\r\n  File \"/home/m/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py\", line 1224, in __init__\r\n    raise TypeError(\"Control input must be an Operation, \"\r\n\r\nhow can i solve this problem?"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/227566614","html_url":"https://github.com/tensorflow/tensorflow/issues/2901#issuecomment-227566614","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2901","id":227566614,"user":{"login":"MammadTavakoli","id":12212802,"avatar_url":"https://avatars.githubusercontent.com/u/12212802?v=3","gravatar_id":"","url":"https://api.github.com/users/MammadTavakoli","html_url":"https://github.com/MammadTavakoli","followers_url":"https://api.github.com/users/MammadTavakoli/followers","following_url":"https://api.github.com/users/MammadTavakoli/following{/other_user}","gists_url":"https://api.github.com/users/MammadTavakoli/gists{/gist_id}","starred_url":"https://api.github.com/users/MammadTavakoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MammadTavakoli/subscriptions","organizations_url":"https://api.github.com/users/MammadTavakoli/orgs","repos_url":"https://api.github.com/users/MammadTavakoli/repos","events_url":"https://api.github.com/users/MammadTavakoli/events{/privacy}","received_events_url":"https://api.github.com/users/MammadTavakoli/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T20:46:49Z","updated_at":"2016-06-21T20:46:49Z","body":"@sherrym \r\n i cant solve this problem. if you can do this with my code can you past it here?"}}
{"actor":{"display_login":"MammadTavakoli"}}