Closed starplanet closed 4 years ago
ManagedModel的set_gpu_id存在bug
def set_gpu_id(gpu_id=None): if gpu_id: os.environ["CUDA_VISIBLE_DEVICES"] = str(gpu_id)
判断条件应该为if gpu_id is not None
if gpu_id is not None
现在临时解决措施是使用字符串来定义cuda_devices=('0', '1')
ManagedModel的set_gpu_id存在bug
判断条件应该为
if gpu_id is not None
现在临时解决措施是使用字符串来定义cuda_devices=('0', '1')