读取pytorch环境配置

2022-09-03 19:23:50 浏览数 (1)

代码语言:javascript复制
import PIL
from torch.utils.collect_env import get_pretty_env_info

def get_pil_version():
    return "n        Pillow ({})".format(PIL.__version__)


def collect_env_info():
    env_str = get_pretty_env_info()
    env_str  = get_pil_version()
    return env_str

print (collect_env_info())

0 人点赞