当前位置:网站首页>Pytoch saves tensor to Mat file
Pytoch saves tensor to Mat file
2022-07-02 15:29:00 【Yesterday, today, tomorrow】
Pytorch preservation tensor To .mat file
import torch
import scipy.io as io
tensor = torch.ones(1, 2, 64)
tensor = tensor.cpu().detach().numpy()
#result = np.array(tensor)
io.savemat('save.mat', {
'result':result})

边栏推荐
- Sharp tool SPL for post SQL calculation
- 03_線性錶_鏈錶
- Party History Documentary theme public welfare digital cultural and creative products officially launched
- 百变大7座,五菱佳辰产品力出众,人性化大空间,关键价格真香
- 搭建自己的语义分割平台deeplabV3+
- 17_Redis_Redis发布订阅
- 13_Redis_事务
- [solution] educational codeforces round 82
- Apprendre le Code de la méthode de conversion du calendrier lunaire grégorien en utilisant PHP
- Set set you don't know
猜你喜欢
随机推荐
15_ Redis_ Redis. Conf detailed explanation
Learn the method code example of converting timestamp to uppercase date using PHP
哈夫曼树:(1)输入各字符及其权值(2)构造哈夫曼树(3)进行哈夫曼编码(4)查找HC[i],得到各字符的哈夫曼编码
LeetCode刷题——奇偶链表#328#Medium
党史纪实主题公益数字文创产品正式上线
. Net again! Happy 20th birthday
Leetcode skimming -- count the number of numbers with different numbers 357 medium
Semantic segmentation learning notes (1)
【网络安全】网络资产收集
18_ Redis_ Redis master-slave replication & cluster building
04.进入云原生后的企业级应用构建的一些思考
Topology architecture of the minimum deployment of tidb cluster
Practical debugging skills
基于RZ/G2L | OK-G2LD-C开发板存储读写速度与网络实测
How to solve the problem of database content output
Case introduction and problem analysis of microservice
Steps for Navicat to create a new database
03. Preliminary use of golang
MD5 encryption
06_栈和队列转换
![[C language] explain the initial and advanced levels of the pointer and points for attention (1)](/img/61/1619bd2e959bae1b769963f66bab4e.png)








