imitation-learning icon indicating copy to clipboard operation
imitation-learning copied to clipboard

Cannot assign a device for operation 'Placeholder':

Open danfouer opened this issue 6 years ago • 1 comments

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

danfouer avatar Apr 28 '18 03:04 danfouer

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

zdx3578 avatar May 16 '18 11:05 zdx3578