Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- FailedPreconditionError Traceback (most recent call last)
- /usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
- 1333 try:
- -> 1334 return fn(*args)
- 1335 except errors.OpError as e:
- /usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata)
- 1318 return self._call_tf_sessionrun(
- -> 1319 options, feed_dict, fetch_list, target_list, run_metadata)
- 1320
- /usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in _call_tf_sessionrun(self, options, feed_dict, fetch_list, target_list, run_metadata)
- 1406 self._session, options, feed_dict, fetch_list, target_list,
- -> 1407 run_metadata)
- 1408
- FailedPreconditionError: Attempting to use uninitialized value Variable_10
- [[{{node _retval_Variable_10_0_0}}]]
- During handling of the above exception, another exception occurred:
- FailedPreconditionError Traceback (most recent call last)
- <ipython-input-12-4eda1f9ef004> in <module>()
- 4
- 5 session = tf.Session()
- ----> 6 print(session.run(v))
- 7 session.close()
- /usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
- 927 try:
- 928 result = self._run(None, fetches, feed_dict, options_ptr,
- --> 929 run_metadata_ptr)
- 930 if run_metadata:
- 931 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
- /usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
- 1150 if final_fetches or final_targets or (handle and feed_dict_tensor):
- 1151 results = self._do_run(handle, final_targets, final_fetches,
- -> 1152 feed_dict_tensor, options, run_metadata)
- 1153 else:
- 1154 results = []
- /usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
- 1326 if handle is None:
- 1327 return self._do_call(_run_fn, feeds, fetches, targets, options,
- -> 1328 run_metadata)
- 1329 else:
- 1330 return self._do_call(_prun_fn, handle, feeds, fetches)
- /usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
- 1346 pass
- 1347 message = error_interpolation.interpolate(message, self._graph)
- -> 1348 raise type(e)(node_def, op, message)
- 1349
- 1350 def _extend_graph(self):
- FailedPreconditionError: Attempting to use uninitialized value Variable_10
- [[{{node _retval_Variable_10_0_0}}]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement