当前位置:网站首页>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')
边栏推荐
- Bid farewell to the charged xshell, and the free function of tabby is more powerful
- LeetCode-1350. Invalid students
- Piecewise Bezier curve
- Tomato learning notes-stm32 SPI introduction and Tim synchronization
- Multithreading (IV) -- no lock (IV) -- unsafe
- Leetcode personal question solution (Sword finger offer3-5) 3 Duplicate number in array, 4 Find in 2D array, 5 Replace spaces
- The principle of SQL injection is to build sqli labs, and SQL injection is simple and practical
- Get the size of the picture
- 夜神模拟器adb查看log
- Cv2.fillpoly coco annotator segment coordinate conversion to mask image
猜你喜欢

LeetCode-419. Battleship on deck

Redis queue

Multithreading (4) -- no lock (2) -- Atomic related atomic classes

Simulateur nightGod ADB View log

Deep and detailed analysis of PHP one sentence Trojan horse

An error occurred while downloading the remote file The errormessage

RNN model

Using hidden Markov model to mark part of speech

Android studio mobile development creates a new database and obtains picture and text data from the database to display on the listview list

Chartextcnn (Ag dataset - news topic classification)
随机推荐
LeetCode-1490. Clone n-ary tree
What states do threads have?
Multithreading (4) -- no lock (2) -- Atomic related atomic classes
Video summary with long short term memory
GET 和 POST 的区别及留言板代码实现
In unity3d, billboard effect can be realized towards another target
Multithreading (2) -- pipeline (2) -- synchronized underlying monitor, lightweight, biased lock, lock inflation
LeetCode-1587. Bank account summary II
六月集训 第一日——数组
LeetCode-419. Battleship on deck
Tomato learning notes-stm32 SPI introduction and Tim synchronization
Redis configuration (IV) -- cluster
About session Getattribute, getattribute error
LeetCode-1189. Maximum number of balloons
AI operation ch8
Piecewise Bezier curve
Whether the modification of basic type and reference type is valid
Dlib face detection
Redis basic notes
The first principle of thinking method