Created by: lfchener
fix a bug in language model that has no attribute 'get_cuda_device_count' when use CPUPlace.