当前位置:网站首页>Pytorch 保存tensor到.mat文件
Pytorch 保存tensor到.mat文件
2022-07-02 12:04:00 【昨日、今日、明日】
Pytorch 保存tensor到.mat文件
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})

边栏推荐
- Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
- N皇后问题的解决
- Base64 coding can be understood this way
- CodeCraft-22 and Codeforces Round #795 (Div. 2)D,E
- Mfc a dialog calls B dialog function and passes parameters
- Base64 编码原来还可以这么理解
- Guangzhou Emergency Management Bureau issued a high temperature and high humidity chemical safety reminder in July
- 12_ Redis_ Bitmap_ command
- 二叉树的遍历方式主要有:先序遍历、中序遍历、后序遍历、层次遍历。先序、中序、后序其实指的是父节点被访问的次序。若在遍历过程中,父节点先于它的子节点被访问,就是先序遍历;
- How to test tidb with sysbench
猜你喜欢

02_ Linear table_ Sequence table

08_ strand

03_線性錶_鏈錶

Guangzhou Emergency Management Bureau issued a high temperature and high humidity chemical safety reminder in July

The past and present lives of visual page building tools

08_ 串

18_Redis_Redis主从复制&&集群搭建

yolo格式数据集处理(xml转txt)

表格响应式布局小技巧

21_Redis_浅析Redis缓存穿透和雪崩
随机推荐
TiDB 环境与系统配置检查
编译原理课程实践——实现一个初等函数运算语言的解释器或编译器
C语言实现N皇后问题
C # delay, start the timer in the thread, and obtain the system time
php获取数组中键值最大数组项的索引值的方法
19_ Redis_ Manually configure the host after downtime
Sharp tool SPL for post SQL calculation
Tidb environment and system configuration check
【C语言】详解指针的初阶和进阶以及注意点(1)
工程师评测 | RK3568开发板上手测试
如何用 Sysbench 测试 TiDB
C thread transfer parameters
08_ strand
How to avoid 7 common problems in mobile and network availability testing
飞凌嵌入式RZ/G2L处理器核心板及开发板上手评测
GeoServer offline map service construction and layer Publishing
HUSTPC2022
Principles, language, compilation, interpretation
03_線性錶_鏈錶
Introduction to C language -- array