Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot assign a device for operation 'Placeholder': #23

Open
danfouer opened this issue Apr 28, 2018 · 1 comment
Open

Cannot assign a device for operation 'Placeholder': #23

danfouer opened this issue Apr 28, 2018 · 1 comment

Comments

@danfouer
Copy link

Basically run:

$ python run_CIL.py

Ihave a carla server running .

Cannot assign a device for operation 'Placeholder': Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device.

python run_CIL.py --help
/home/danfouer/.conda/envs/tensorflow/lib/python2.7/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
usage: run_CIL.py [-h] [-v] [--host H] [-p P] [-c C] [-n T] [--avoid-stopping]
[--continue-experiment]

optional arguments:
-h, --help show this help message and exit
-v, --verbose print debug information
--host H IP of the host server (default: localhost)
-p P, --port P TCP port to listen to (default: 2000)
-c C, --city-name C The town that is going to be used on benchmark(needs
to match active town in server, options: Town01 or
Town02)
-n T, --log_name T The name of the log file to be created by the scripts
--avoid-stopping Uses the speed prediction branch to avoid unwanted
agent stops
--continue-experiment
If you want to continue the experiment with the given
log name

python2.7 and python3.5 got the same result

@zdx3578
Copy link

zdx3578 commented May 16, 2018

installed tensorflow and tensorflow-gpu,delete all. only reinstall tensorflow-gpu is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants