Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.23 KB | None | 0 0
  1. INFO:tensorflow:Create CheckpointSaverHook.
  2. INFO:tensorflow:Error reported to Coordinator: <class 'SystemError'>, <built-in function TF_Run> returned a result with an error set
  3. ---------------------------------------------------------------------------
  4. UnimplementedError Traceback (most recent call last)
  5. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
  6. 1326 try:
  7. -> 1327 return fn(*args)
  8. 1328 except errors.OpError as e:
  9.  
  10. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata)
  11. 1305 feed_dict, fetch_list, target_list,
  12. -> 1306 status, run_metadata)
  13. 1307
  14.  
  15. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/contextlib.py in __exit__(self, type, value, traceback)
  16. 65 try:
  17. ---> 66 next(self.gen)
  18. 67 except StopIteration:
  19.  
  20. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py in raise_exception_on_not_ok_status()
  21. 465 compat.as_text(pywrap_tensorflow.TF_Message(status)),
  22. --> 466 pywrap_tensorflow.TF_GetCode(status))
  23. 467 finally:
  24.  
  25. UnimplementedError: Cast string to float is not supported
  26. [[Node: linear/head/ToFloat = Cast[DstT=DT_FLOAT, SrcT=DT_STRING, _device="/job:localhost/replica:0/task:0/cpu:0"](linear/head/labels)]]
  27.  
  28. During handling of the above exception, another exception occurred:
  29.  
  30. UnimplementedError Traceback (most recent call last)
  31. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py in _train_model(self, input_fn, hooks)
  32. 685 while not mon_sess.should_stop():
  33. --> 686 _, loss = mon_sess.run([estimator_spec.train_op, estimator_spec.loss])
  34. 687 return loss
  35.  
  36. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, fetches, feed_dict, options, run_metadata)
  37. 517 options=options,
  38. --> 518 run_metadata=run_metadata)
  39. 519
  40.  
  41. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, fetches, feed_dict, options, run_metadata)
  42. 861 options=options,
  43. --> 862 run_metadata=run_metadata)
  44. 863 except _PREEMPTION_ERRORS as e:
  45.  
  46. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, *args, **kwargs)
  47. 817 def run(self, *args, **kwargs):
  48. --> 818 return self._sess.run(*args, **kwargs)
  49. 819
  50.  
  51. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, fetches, feed_dict, options, run_metadata)
  52. 971 options=options,
  53. --> 972 run_metadata=run_metadata)
  54. 973
  55.  
  56. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, *args, **kwargs)
  57. 817 def run(self, *args, **kwargs):
  58. --> 818 return self._sess.run(*args, **kwargs)
  59. 819
  60.  
  61. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
  62. 894 result = self._run(None, fetches, feed_dict, options_ptr,
  63. --> 895 run_metadata_ptr)
  64. 896 if run_metadata:
  65.  
  66. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
  67. 1123 results = self._do_run(handle, final_targets, final_fetches,
  68. -> 1124 feed_dict_tensor, options, run_metadata)
  69. 1125 else:
  70.  
  71. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
  72. 1320 return self._do_call(_run_fn, self._session, feeds, fetches, targets,
  73. -> 1321 options, run_metadata)
  74. 1322 else:
  75.  
  76. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
  77. 1339 pass
  78. -> 1340 raise type(e)(node_def, op, message)
  79. 1341
  80.  
  81. UnimplementedError: Cast string to float is not supported
  82. [[Node: linear/head/ToFloat = Cast[DstT=DT_FLOAT, SrcT=DT_STRING, _device="/job:localhost/replica:0/task:0/cpu:0"](linear/head/labels)]]
  83.  
  84. Caused by op 'linear/head/ToFloat', defined at:
  85. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/runpy.py", line 193, in _run_module_as_main
  86. "__main__", mod_spec)
  87. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/runpy.py", line 85, in _run_code
  88. exec(code, run_globals)
  89. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/ipykernel_launcher.py", line 16, in <module>
  90. app.launch_new_instance()
  91. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/traitlets/config/application.py", line 658, in launch_instance
  92. app.start()
  93. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 477, in start
  94. ioloop.IOLoop.instance().start()
  95. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/zmq/eventloop/ioloop.py", line 177, in start
  96. super(ZMQIOLoop, self).start()
  97. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tornado/ioloop.py", line 888, in start
  98. handler_func(fd_obj, events)
  99. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tornado/stack_context.py", line 277, in null_wrapper
  100. return fn(*args, **kwargs)
  101. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/zmq/eventloop/zmqstream.py", line 440, in _handle_events
  102. self._handle_recv()
  103. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/zmq/eventloop/zmqstream.py", line 472, in _handle_recv
  104. self._run_callback(callback, msg)
  105. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/zmq/eventloop/zmqstream.py", line 414, in _run_callback
  106. callback(*args, **kwargs)
  107. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tornado/stack_context.py", line 277, in null_wrapper
  108. return fn(*args, **kwargs)
  109. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/ipykernel/kernelbase.py", line 283, in dispatcher
  110. return self.dispatch_shell(stream, msg)
  111. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/ipykernel/kernelbase.py", line 235, in dispatch_shell
  112. handler(stream, idents, msg)
  113. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/ipykernel/kernelbase.py", line 399, in execute_request
  114. user_expressions, allow_stdin)
  115. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/ipykernel/ipkernel.py", line 196, in do_execute
  116. res = shell.run_cell(code, store_history=store_history, silent=silent)
  117. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/ipykernel/zmqshell.py", line 533, in run_cell
  118. return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
  119. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2698, in run_cell
  120. interactivity=interactivity, compiler=compiler, result=result)
  121. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2808, in run_ast_nodes
  122. if self.run_code(code, result):
  123. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2862, in run_code
  124. exec(code_obj, self.user_global_ns, self.user_ns)
  125. File "<ipython-input-420-ff68dadd2b4b>", line 1, in <module>
  126. model.train(input_fn=input_func,steps=5000)
  127. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 241, in train
  128. loss = self._train_model(input_fn=input_fn, hooks=hooks)
  129. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 630, in _train_model
  130. model_fn_lib.ModeKeys.TRAIN)
  131. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 615, in _call_model_fn
  132. model_fn_results = self._model_fn(features=features, **kwargs)
  133. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/canned/linear.py", line 222, in _model_fn
  134. config=config)
  135. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/canned/linear.py", line 102, in _linear_model_fn
  136. logits=logits)
  137. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/canned/head.py", line 632, in create_estimator_spec
  138. labels = math_ops.to_float(labels)
  139. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/ops/math_ops.py", line 765, in to_float
  140. return cast(x, dtypes.float32, name=name)
  141. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/ops/math_ops.py", line 716, in cast
  142. return gen_math_ops.cast(x, base_type, name=name)
  143. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/ops/gen_math_ops.py", line 450, in cast
  144. result = _op_def_lib.apply_op("Cast", x=x, DstT=DstT, name=name)
  145. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
  146. op_def=op_def)
  147. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op
  148. original_op=self._default_original_op, op_def=op_def)
  149. File "/Users/brunoteixeira/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1204, in __init__
  150. self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
  151.  
  152. UnimplementedError (see above for traceback): Cast string to float is not supported
  153. [[Node: linear/head/ToFloat = Cast[DstT=DT_FLOAT, SrcT=DT_STRING, _device="/job:localhost/replica:0/task:0/cpu:0"](linear/head/labels)]]
  154.  
  155.  
  156. During handling of the above exception, another exception occurred:
  157.  
  158. SystemError Traceback (most recent call last)
  159. <ipython-input-420-ff68dadd2b4b> in <module>()
  160. ----> 1 model.train(input_fn=input_func,steps=5000)
  161.  
  162. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py in train(self, input_fn, hooks, steps, max_steps)
  163. 239 hooks.append(training.StopAtStepHook(steps, max_steps))
  164. 240
  165. --> 241 loss = self._train_model(input_fn=input_fn, hooks=hooks)
  166. 242 logging.info('Loss for final step: %s.', loss)
  167. 243 return self
  168.  
  169. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py in _train_model(self, input_fn, hooks)
  170. 684 loss = None
  171. 685 while not mon_sess.should_stop():
  172. --> 686 _, loss = mon_sess.run([estimator_spec.train_op, estimator_spec.loss])
  173. 687 return loss
  174. 688
  175.  
  176. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in __exit__(self, exception_type, exception_value, traceback)
  177. 532 if exception_type in [errors.OutOfRangeError, StopIteration]:
  178. 533 exception_type = None
  179. --> 534 self._close_internal(exception_type)
  180. 535 # __exit__ should return True to suppress an exception.
  181. 536 return exception_type is None
  182.  
  183. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in _close_internal(self, exception_type)
  184. 567 finally:
  185. 568 try:
  186. --> 569 self._sess.close()
  187. 570 finally:
  188. 571 self._sess = None
  189.  
  190. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in close(self)
  191. 809 if self._sess:
  192. 810 try:
  193. --> 811 self._sess.close()
  194. 812 except _PREEMPTION_ERRORS:
  195. 813 pass
  196.  
  197. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in close(self)
  198. 906 self._coord.join(
  199. 907 stop_grace_period_secs=self._stop_grace_period_secs,
  200. --> 908 ignore_live_threads=True)
  201. 909 finally:
  202. 910 try:
  203.  
  204. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/training/coordinator.py in join(self, threads, stop_grace_period_secs, ignore_live_threads)
  205. 387 self._registered_threads = set()
  206. 388 if self._exc_info_to_raise:
  207. --> 389 six.reraise(*self._exc_info_to_raise)
  208. 390 elif stragglers:
  209. 391 if ignore_live_threads:
  210.  
  211. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/six.py in reraise(tp, value, tb)
  212. 684 if value.__traceback__ is not tb:
  213. 685 raise value.with_traceback(tb)
  214. --> 686 raise value
  215. 687
  216. 688 else:
  217.  
  218. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/estimator/inputs/queues/feeding_queue_runner.py in _run(self, sess, enqueue_op, feed_fn, coord)
  219. 92 try:
  220. 93 feed_dict = None if feed_fn is None else feed_fn()
  221. ---> 94 sess.run(enqueue_op, feed_dict=feed_dict)
  222. 95 except (errors.OutOfRangeError, errors.CancelledError):
  223. 96 # This exception indicates that a queue was closed.
  224.  
  225. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
  226. 893 try:
  227. 894 result = self._run(None, fetches, feed_dict, options_ptr,
  228. --> 895 run_metadata_ptr)
  229. 896 if run_metadata:
  230. 897 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
  231.  
  232. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
  233. 1122 if final_fetches or final_targets or (handle and feed_dict_tensor):
  234. 1123 results = self._do_run(handle, final_targets, final_fetches,
  235. -> 1124 feed_dict_tensor, options, run_metadata)
  236. 1125 else:
  237. 1126 results = []
  238.  
  239. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
  240. 1319 if handle is None:
  241. 1320 return self._do_call(_run_fn, self._session, feeds, fetches, targets,
  242. -> 1321 options, run_metadata)
  243. 1322 else:
  244. 1323 return self._do_call(_prun_fn, self._session, handle, feeds, fetches)
  245.  
  246. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
  247. 1325 def _do_call(self, fn, *args):
  248. 1326 try:
  249. -> 1327 return fn(*args)
  250. 1328 except errors.OpError as e:
  251. 1329 message = compat.as_text(e.message)
  252.  
  253. ~/anaconda2/envs/tfdeeplearning/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata)
  254. 1304 return tf_session.TF_Run(session, options,
  255. 1305 feed_dict, fetch_list, target_list,
  256. -> 1306 status, run_metadata)
  257. 1307
  258. 1308 def _prun_fn(session, handle, feed_dict, fetch_list):
  259.  
  260. SystemError: <built-in function TF_Run> returned a result with an error set
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement