当前位置:网站首页>Torch models trained in higher versions report errors in lower versions
Torch models trained in higher versions report errors in lower versions
2022-06-12 06:34:00 【Uh huh】
pttempted to read a PyTorch file with version 3, but the maximum supported version for reading is 2.
solve :
First use the higher version torch Save again after reading .
model = torch.load('model_name.pt')
torch.save(model, 'save_path', _use_new_zipfile_serialization=False)
Then read in the lower version .
torch.load('model path', map_location='cpu')
边栏推荐
- Redis basic notes
- Redis data structure (VIII) -- Geo
- Leetcode January 12 daily question 334 Increasing ternary subsequence
- PHP 开发环境搭建及数据库增删改查
- [reinstall system] 01 system startup USB flash disk production
- SQL注入——联合查询union
- 上传文件(post表单提交form-data)
- LeetCode-1445. Apples and oranges
- Node. Detailed installation tutorial of CPM and cnpm (including error resolution)
- An error occurred while downloading the remote file The errormessage
猜你喜欢

PHP 读写 COOKIE

Solution: content type 'application/x-www-form-urlencoded; charset=UTF-8‘ not supported

RMB classification II

Multithreading (4) -- no lock (3) -- longadder source code

LeetCode个人题解(剑指offer3-5)3.数组中重复的数字,4.二维数组中的查找,5.替换空格

Redis configuration (III) -- master-slave replication

In unity3d, billboard effect can be realized towards another target

leetcode 278. First wrong version

Opencv_100问_第五章 (21-25)

Information content security experiment of Harbin Institute of Technology
随机推荐
It only takes 10 minutes to understand the underlying principle of NiO
Redis data type (VII) -- hyperloglog
LeetCode-1587. Bank account summary II
PHP 读写 COOKIE
GET 和 POST 的区别及留言板代码实现
Single channel picture reading
The seventh day of June training - hash table
勤于奋寻找联盟程序方法介绍
Bert Chinese classification model training + reasoning + deployment
Computer composition and design work06 —— 基于MIPS
Dlib face detection
Multithreading (V) -- concurrency tools (I) -- thread pool (II) -- related contents of ThreadPoolExecutor
N-degree Bessel curve
Solution: unsatisfieddependencyexception: error creating bean with name 'authaspect':
Leetcode January 13 daily question 747 At least twice the maximum number of other numbers
MLP sensor
LeetCode-997. Find the town judge
leetcode 278. First wrong version
Mastering UI development with unity
MNIST handwritten data recognition by RNN