You have error in image_classification/train.py
Created by: sfraczek
error message
------------------------------------------------
Traceback (most recent call last):
File "train.py", line 236, in <module>
main()
File "train.py", line 232, in main
train(args)
File "train.py", line 160, in train
train_exe = fluid.ParallelExecutor(use_cuda=True, loss_name=avg_cost.name)
File "/home/sfraczek/paddle/build/python/paddle/fluid/parallel_executor.py", line 97, in __init__
for i in xrange(core.get_cuda_device_count()):
AttributeError: 'module' object has no attribute 'get_cuda_device_count'
the cause
if use_gpu is False, you still pass use_cuda=True and cause the above error
train_exe = fluid.ParallelExecutor(use_cuda=True, loss_name=avg_cost.name)
additional note
I compiled with -DWITH_GPU=OFF