前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
Created by: gentelyang
device = envs.get_global_env("device") if device == 'gpu': self._place = fluid.CUDAPlace(0) elif device == 'cpu': self._place = fluid.CPUPlace()