摘要: torch.cuda.empty_cache() # 服务器的内存(主存)最大可达几十T,因此服务器上可以做到直接将所有训练数据加载到内存之后训练 阅读全文
posted @ 2020-11-27 14:46 Parallax 阅读(385) 评论(0) 推荐(0) 编辑
摘要: import json a = {"name":"li hua" ,"year": 2020} b = json.dumps(a)# 将字典类型转换成字符串类型(必须是字典格式) print(b) print(type(b)) ​ """ {"name": "li hua", "year": 202 阅读全文
posted @ 2020-11-27 14:07 Parallax 阅读(176) 评论(0) 推荐(0) 编辑