---------------------------------------------------------------------------
InvalidArgumentError Traceback (most recent call last)
/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
729 try:
--> 730 return fn(*args)
731 except errors.OpError as e:
/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata)
711 feed_dict, fetch_list, target_list,
--> 712 status, run_metadata)
713
/home/jun_gentoo/anaconda3/lib/python3.5/contextlib.py in __exit__(self, type, value, traceback)
65 try:
---> 66 next(self.gen)
67 except StopIteration:
/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/errors.py in raise_exception_on_not_ok_status()
449 compat.as_text(pywrap_tensorflow.TF_Message(status)),
--> 450 pywrap_tensorflow.TF_GetCode(status))
451 finally:
InvalidArgumentError: You must feed a value for placeholder tensor 'Placeholder' with dtype float
[[Node: Placeholder = Placeholder[dtype=DT_FLOAT, shape=[], _device="/job:localhost/replica:0/task:0/cpu:0"]()]]
During handling of the above exception, another exception occurred:
InvalidArgumentError Traceback (most recent call last)
<ipython-input-25-9e3ad9f1744a> in <module>()
3 end=min(start+batch_size,dataset_size)
4 interactive_session.run(learning_step,feed_dict={x:X[start:end],y_:Y[start:end]})
----> 5 print(interactive_session.run(loss))
/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
380 try:
381 result = self._run(None, fetches, feed_dict, options_ptr,
--> 382 run_metadata_ptr)
383 if run_metadata:
384 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
653 movers = self._update_with_movers(feed_dict_string, feed_map)
654 results = self._do_run(handle, target_list, unique_fetches,
--> 655 feed_dict_string, options, run_metadata)
656
657 # User may have fetched the same tensor multiple times, but we
/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
721 if handle is None:
722 return self._do_call(_run_fn, self._session, feed_dict, fetch_list,
--> 723 target_list, options, run_metadata)
724 else:
725 return self._do_call(_prun_fn, self._session, handle, feed_dict,
/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
741 except KeyError:
742 pass
--> 743 raise type(e)(node_def, op, message)
744
745 def _extend_graph(self):
InvalidArgumentError: You must feed a value for placeholder tensor 'Placeholder' with dtype float
[[Node: Placeholder = Placeholder[dtype=DT_FLOAT, shape=[], _device="/job:localhost/replica:0/task:0/cpu:0"]()]]
Caused by op 'Placeholder', defined at:
File "/home/jun_gentoo/anaconda3/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/jun_gentoo/anaconda3/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/ipykernel/__main__.py", line 3, in <module>
app.launch_new_instance()
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/traitlets/config/application.py", line 653, in launch_instance
app.start()
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 474, in start
ioloop.IOLoop.instance().start()
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/zmq/eventloop/ioloop.py", line 162, in start
super(ZMQIOLoop, self).start()
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tornado/ioloop.py", line 887, in start
handler_func(fd_obj, events)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
return fn(*args, **kwargs)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/zmq/eventloop/zmqstream.py", line 440, in _handle_events
self._handle_recv()
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/zmq/eventloop/zmqstream.py", line 472, in _handle_recv
self._run_callback(callback, msg)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/zmq/eventloop/zmqstream.py", line 414, in _run_callback
callback(*args, **kwargs)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
return fn(*args, **kwargs)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/ipykernel/kernelbase.py", line 276, in dispatcher
return self.dispatch_shell(stream, msg)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/ipykernel/kernelbase.py", line 228, in dispatch_shell
handler(stream, idents, msg)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/ipykernel/kernelbase.py", line 390, in execute_request
user_expressions, allow_stdin)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/ipykernel/ipkernel.py", line 196, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/ipykernel/zmqshell.py", line 501, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2717, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2821, in run_ast_nodes
if self.run_code(code, result):
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-4-cfd37550b740>", line 1, in <module>
x=tf.placeholder(tf.float32,shape=(None,2))
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py", line 1274, in placeholder
name=name)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/gen_array_ops.py", line 1522, in _placeholder
name=name)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 703, in apply_op
op_def=op_def)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2310, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/jun_gentoo/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1232, in __init__
self._traceback = _extract_stack()