You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by op 'input/y_input', defined at:
File "D:\ProgramData\envs\tensorflow1\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "D:\ProgramData\envs\tensorflow1\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel_main.py", line 3, in
app.launch_new_instance()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
app.start()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\zmq\eventloop\ioloop.py", line 177, in start
super(ZMQIOLoop, self).start()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tornado\ioloop.py", line 888, in start
handler_func(fd_obj, events)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\zmq\eventloop\zmqstream.py", line 440, in _handle_events
self._handle_recv()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\zmq\eventloop\zmqstream.py", line 472, in _handle_recv
self._run_callback(callback, msg)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\zmq\eventloop\zmqstream.py", line 414, in _run_callback
callback(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\kernelbase.py", line 235, in dispatch_shell
handler(stream, idents, msg)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\kernelbase.py", line 399, in execute_request
user_expressions, allow_stdin)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\ipkernel.py", line 196, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\zmqshell.py", line 533, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\IPython\core\interactiveshell.py", line 2698, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\IPython\core\interactiveshell.py", line 2802, in run_ast_nodes
if self.run_code(code, result):
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 30, in
ys=tf.placeholder(tf.float32,[None,1],name = 'y_input')
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1745, in placeholder
return gen_array_ops.placeholder(dtype=dtype, shape=shape, name=name)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 6038, in placeholder
"Placeholder", dtype=dtype, shape=shape, name=name)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\util\deprecation.py", line 488, in new_func
return func(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\framework\ops.py", line 3272, in create_op
op_def=op_def)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\framework\ops.py", line 1768, in init
self._traceback = tf_stack.extract_stack()
InvalidArgumentError Traceback (most recent call last)
D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py in _do_call(self, fn, *args)
1291 try:
-> 1292 return fn(*args)
1293 except errors.OpError as e:
D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata)
1276 return self._call_tf_sessionrun(
-> 1277 options, feed_dict, fetch_list, target_list, run_metadata)
1278
D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py in _call_tf_sessionrun(self, options, feed_dict, fetch_list, target_list, run_metadata)
1366 self._session, options, feed_dict, fetch_list, target_list,
-> 1367 run_metadata)
1368
InvalidArgumentError: You must feed a value for placeholder tensor 'input/y_input' with dtype float and shape [?,1]
[[{{node input/y_input}} = Placeholderdtype=DT_FLOAT, shape=[?,1], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
During handling of the above exception, another exception occurred:
InvalidArgumentError Traceback (most recent call last)
in ()
41 for step in range(100):
42 # train and net output
---> 43 _, result = sess.run([train_op, merge_op], {tf_x: x, tf_y: y})
44 writer.add_summary(result, step)
45
D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py in run(self, fetches, feed_dict, options, run_metadata)
885 try:
886 result = self._run(None, fetches, feed_dict, options_ptr,
--> 887 run_metadata_ptr)
888 if run_metadata:
889 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
1108 if final_fetches or final_targets or (handle and feed_dict_tensor):
1109 results = self._do_run(handle, final_targets, final_fetches,
-> 1110 feed_dict_tensor, options, run_metadata)
1111 else:
1112 results = []
D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
1284 if handle is None:
1285 return self._do_call(_run_fn, feeds, fetches, targets, options,
-> 1286 run_metadata)
1287 else:
1288 return self._do_call(_prun_fn, handle, feeds, fetches)
D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py in _do_call(self, fn, *args)
1306 self._config.experimental.client_handles_error_formatting):
1307 message = error_interpolation.interpolate(message, self._graph)
-> 1308 raise type(e)(node_def, op, message)
1309
1310 def _extend_graph(self):
InvalidArgumentError: You must feed a value for placeholder tensor 'input/y_input' with dtype float and shape [?,1]
[[{{node input/y_input}} = Placeholderdtype=DT_FLOAT, shape=[?,1], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
Caused by op 'input/y_input', defined at:
File "D:\ProgramData\envs\tensorflow1\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "D:\ProgramData\envs\tensorflow1\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel_main.py", line 3, in
app.launch_new_instance()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
app.start()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\zmq\eventloop\ioloop.py", line 177, in start
super(ZMQIOLoop, self).start()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tornado\ioloop.py", line 888, in start
handler_func(fd_obj, events)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\zmq\eventloop\zmqstream.py", line 440, in _handle_events
self._handle_recv()
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\zmq\eventloop\zmqstream.py", line 472, in _handle_recv
self._run_callback(callback, msg)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\zmq\eventloop\zmqstream.py", line 414, in _run_callback
callback(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\kernelbase.py", line 235, in dispatch_shell
handler(stream, idents, msg)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\kernelbase.py", line 399, in execute_request
user_expressions, allow_stdin)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\ipkernel.py", line 196, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\ipykernel\zmqshell.py", line 533, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\IPython\core\interactiveshell.py", line 2698, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\IPython\core\interactiveshell.py", line 2802, in run_ast_nodes
if self.run_code(code, result):
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 30, in
ys=tf.placeholder(tf.float32,[None,1],name = 'y_input')
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1745, in placeholder
return gen_array_ops.placeholder(dtype=dtype, shape=shape, name=name)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 6038, in placeholder
"Placeholder", dtype=dtype, shape=shape, name=name)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\util\deprecation.py", line 488, in new_func
return func(*args, **kwargs)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\framework\ops.py", line 3272, in create_op
op_def=op_def)
File "D:\ProgramData\envs\tensorflow1\lib\site-packages\tensorflow\python\framework\ops.py", line 1768, in init
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'input/y_input' with dtype float and shape [?,1]
[[{{node input/y_input}} = Placeholderdtype=DT_FLOAT, shape=[?,1], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
The text was updated successfully, but these errors were encountered: