当前位置:网站首页>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})

边栏推荐
- 04_ Stack
- 10_Redis_geospatial_命令
- [c voice] explain the advanced pointer and points for attention (2)
- Niuke Practice 101
- JVM architecture, classloader, parental delegation mechanism
- 14_Redis_乐观锁
- Record an error report, solve the experience, rely on repetition
- CodeCraft-22 and Codeforces Round #795 (Div. 2)D,E
- TiDB 环境与系统配置检查
- C RichTextBox controls the maximum number of lines displayed
猜你喜欢

08_ strand

Map introduction

16_Redis_Redis持久化

vChain: Enabling Verifiable Boolean Range Queries over Blockchain Databases(sigmod‘2019)

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

可视化搭建页面工具的前世今生

21_Redis_浅析Redis缓存穿透和雪崩

Case introduction and problem analysis of microservice

CodeCraft-22 and Codeforces Round #795 (Div. 2)D,E

Dragonfly low code security tool platform development path
随机推荐
Tidb data migration tool overview
表格响应式布局小技巧
Map introduction
C thread transfer parameters
18_Redis_Redis主从复制&&集群搭建
14_ Redis_ Optimistic lock
. Net core logging system
Introduction to C language -- array
[noi simulation] Elis (greedy, simulation)
TiDB 环境与系统配置检查
数据库内容输出有问题怎么解决
19_ Redis_ Manually configure the host after downtime
Tidb cross data center deployment topology
让您的HMI更具优势,FET-G2LD-C核心板是个好选择
C语言实现N皇后问题
Table responsive layout tips
学习使用php将时间戳转换为大写日期的方法代码示例
Printf function and scanf function in C language
Tidb hybrid deployment topology
Key points of compilation principle examination in 2021-2022 academic year [overseas Chinese University]