Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- InvalidArgumentError Traceback (most recent call last)
- /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _do_call(self, fn, *args)
- 1364 try:
- -> 1365 return fn(*args)
- 1366 except errors.OpError as e:
- 7 frames
- /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata)
- 1349 return self._call_tf_sessionrun(options, feed_dict, fetch_list,
- -> 1350 target_list, run_metadata)
- 1351
- /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)
- 1442 fetch_list, target_list,
- -> 1443 run_metadata)
- 1444
- 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
- During handling of the above exception, another exception occurred:
- InvalidArgumentError Traceback (most recent call last)
- <ipython-input-10-01cac24e7009> in <module>()
- ----> 1 v1 = (tflib.run(['G_synthesis_1/4x4/Const/const:0'])[0])
- /content/stylegan2/dnnlib/tflib/tfutil.py in run(*args, **kwargs)
- 29 """Run the specified ops in the default session."""
- 30 assert_tf_initialized()
- ---> 31 return tf.get_default_session().run(*args, **kwargs)
- 32
- 33
- /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
- 954 try:
- 955 result = self._run(None, fetches, feed_dict, options_ptr,
- --> 956 run_metadata_ptr)
- 957 if run_metadata:
- 958 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
- /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
- 1178 if final_fetches or final_targets or (handle and feed_dict_tensor):
- 1179 results = self._do_run(handle, final_targets, final_fetches,
- -> 1180 feed_dict_tensor, options, run_metadata)
- 1181 else:
- 1182 results = []
- /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)
- 1357 if handle is None:
- 1358 return self._do_call(_run_fn, feeds, fetches, targets, options,
- -> 1359 run_metadata)
- 1360 else:
- 1361 return self._do_call(_prun_fn, handle, feeds, fetches)
- /tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py in _do_call(self, fn, *args)
- 1382 '\nsession_config.graph_options.rewrite_options.'
- 1383 'disable_meta_optimizer = True')
- -> 1384 raise type(e)(node_def, op, message)
- 1385
- 1386 def _extend_graph(self):
- 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