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

边栏推荐
- Let your HMI have more advantages. Fet-g2ld-c core board is a good choice
- 05_队列
- 数据库内容输出有问题怎么解决
- Mavn builds nexus private server
- 19_Redis_宕机后手动配置主机
- Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
- The past and present lives of visual page building tools
- Tidb cross data center deployment topology
- 原则、语言、编译、解释
- 11_ Redis_ Hyperloglog_ command
猜你喜欢

Map introduction

FPGA - clock-03-clock management module (CMT) of internal structure of 7 Series FPGA

Kibana basic operation

Mavn 搭建 Nexus 私服

Introduction to C language -- array

19_ Redis_ Manually configure the host after downtime

03_ Linear table_ Linked list

飞凌嵌入式RZ/G2L处理器核心板及开发板上手评测

10_ Redis_ geospatial_ command

17_Redis_Redis发布订阅
随机推荐
语义分割学习笔记(一)
二叉树的遍历方式主要有:先序遍历、中序遍历、后序遍历、层次遍历。先序、中序、后序其实指的是父节点被访问的次序。若在遍历过程中,父节点先于它的子节点被访问,就是先序遍历;
05_队列
TiDB跨数据中心部署拓扑
The traversal methods of binary tree mainly include: first order traversal, middle order traversal, second order traversal, and hierarchical traversal. First order, middle order, and second order actu
15_ Redis_ Redis. Conf detailed explanation
15_Redis_Redis.conf详解
02_线性表_顺序表
让您的HMI更具优势,FET-G2LD-C核心板是个好选择
Recommended configuration of tidb software and hardware environment
数据库内容输出有问题怎么解决
Facing the challenge of "lack of core", how can Feiling provide a stable and strong guarantee for customers' production capacity?
如何用 Sysbench 测试 TiDB
Application of CDN in game field
kibana 基础操作
20_Redis_哨兵模式
Real estate market trend outlook in 2022
Printf function and scanf function in C language
Tidb data migration scenario overview
Tidb cross data center deployment topology