当前位置:网站首页>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})
边栏推荐
- Bing.com网站
- Solve the problem of frequent interruption of mobaxterm remote connection
- 18_ Redis_ Redis master-slave replication & cluster building
- Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568
- MD5 encryption
- Bing.com網站
- Engineer evaluation | rk3568 development board hands-on test
- 14_Redis_乐观锁
- LeetCode刷题——去除重复字母#316#Medium
- vChain: Enabling Verifiable Boolean Range Queries over Blockchain Databases(sigmod‘2019)
猜你喜欢
随机推荐
Yolo format data set processing (XML to txt)
Map introduction
Learn the method code of using PHP to realize the conversion of Gregorian calendar and lunar calendar
13_ Redis_ affair
02.面向容器化后,必须面对golang
Apprendre le Code de la méthode de conversion du calendrier lunaire grégorien en utilisant PHP
Common English abbreviations for data analysis (I)
Markdown tutorial
LeetCode刷题——验证二叉树的前序序列化#331#Medium
03.golang初步使用
Download blender on Alibaba cloud image station
08_ 串
Oracle primary key auto increment
03_线性表_链表
2022 年辽宁省大学生数学建模A、B、C题(相关论文及模型程序代码网盘下载)
08_ strand
NBA player analysis
Solve the problem of frequent interruption of mobaxterm remote connection
04_ Stack
How to conduct TPC-C test on tidb