当前位置:网站首页>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})
边栏推荐
- FPGA - clock-03-clock management module (CMT) of internal structure of 7 Series FPGA
- [noi simulation] Elis (greedy, simulation)
- 08_ 串
- XML Configuration File
- Mavn builds nexus private server
- C language exercises - (array)
- Common English abbreviations for data analysis (I)
- List集合&UML图
- LeetCode_ Sliding window_ Medium_ 395. Longest substring with at least k repeated characters
- JVM architecture, classloader, parental delegation mechanism
猜你喜欢
随机推荐
15_Redis_Redis.conf详解
Guangzhou Emergency Management Bureau issued a high temperature and high humidity chemical safety reminder in July
Real estate market trend outlook in 2022
Mavn 搭建 Nexus 私服
Record an interview
LeetCode 2320. Count the number of ways to place the house
HUSTPC2022
TiDB数据迁移工具概览
Kibana basic operation
牛客练习赛101
MFC timer usage
How does the computer set up speakers to play microphone sound
AtCoder Beginner Contest 254
vChain: Enabling Verifiable Boolean Range Queries over Blockchain Databases(sigmod‘2019)
C thread transfer parameters
做好抗“疫”之路的把关人——基于RK3568的红外热成像体温检测系统
18_Redis_Redis主从复制&&集群搭建
数据分析思维分析方法和业务知识——业务指标
JVM architecture, classloader, parental delegation mechanism
学习使用php将时间戳转换为大写日期的方法代码示例