Advertisement
Guest User

Untitled

a guest
Jul 27th, 2020
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. InvalidArgumentError Traceback (most recent call last)
  3. /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _do_call(self, fn, *args)
  4. 1364 try:
  5. -> 1365 return fn(*args)
  6. 1366 except errors.OpError as e:
  7.  
  8. 7 frames
  9. /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata)
  10. 1349 return self._call_tf_sessionrun(options, feed_dict, fetch_list,
  11. -> 1350 target_list, run_metadata)
  12. 1351
  13.  
  14. /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _call_tf_sessionrun(self, options, feed_dict, fetch_list, target_list, run_metadata)
  15. 1442 fetch_list, target_list,
  16. -> 1443 run_metadata)
  17. 1444
  18.  
  19. InvalidArgumentError: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:0 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is G_synthesis_1/4x4/Const/const , and the dst node is _retval_G_synthesis_1/4x4/Const/const_0_0
  20.  
  21. During handling of the above exception, another exception occurred:
  22.  
  23. InvalidArgumentError Traceback (most recent call last)
  24. <ipython-input-10-01cac24e7009> in <module>()
  25. ----> 1 v1 = (tflib.run(['G_synthesis_1/4x4/Const/const:0'])[0])
  26.  
  27. /content/stylegan2/dnnlib/tflib/tfutil.py in run(*args, **kwargs)
  28. 29 """Run the specified ops in the default session."""
  29. 30 assert_tf_initialized()
  30. ---> 31 return tf.get_default_session().run(*args, **kwargs)
  31. 32
  32. 33
  33.  
  34. /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
  35. 954 try:
  36. 955 result = self._run(None, fetches, feed_dict, options_ptr,
  37. --> 956 run_metadata_ptr)
  38. 957 if run_metadata:
  39. 958 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
  40.  
  41. /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
  42. 1178 if final_fetches or final_targets or (handle and feed_dict_tensor):
  43. 1179 results = self._do_run(handle, final_targets, final_fetches,
  44. -> 1180 feed_dict_tensor, options, run_metadata)
  45. 1181 else:
  46. 1182 results = []
  47.  
  48. /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
  49. 1357 if handle is None:
  50. 1358 return self._do_call(_run_fn, feeds, fetches, targets, options,
  51. -> 1359 run_metadata)
  52. 1360 else:
  53. 1361 return self._do_call(_prun_fn, handle, feeds, fetches)
  54.  
  55. /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _do_call(self, fn, *args)
  56. 1382 '\nsession_config.graph_options.rewrite_options.'
  57. 1383 'disable_meta_optimizer = True')
  58. -> 1384 raise type(e)(node_def, op, message)
  59. 1385
  60. 1386 def _extend_graph(self):
  61.  
  62. InvalidArgumentError: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:0 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is G_synthesis_1/4x4/Const/const , and the dst node is _retval_G_synthesis_1/4x4/Const/const_0_0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement