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

边栏推荐
猜你喜欢

14_ Redis_ Optimistic lock

How does the computer set up speakers to play microphone sound

LeetCode 2320. Count the number of ways to place the house

面对“缺芯”挑战,飞凌如何为客户产能提供稳定强大的保障?

Mavn 搭建 Nexus 私服

Case introduction and problem analysis of microservice

Btrace- (bytecode) dynamic tracking tool
![[noi simulation] Elis (greedy, simulation)](/img/a2/f8c8ab3bc8dd779327be3f76990976.png)
[noi simulation] Elis (greedy, simulation)

LeetCode 2310. The number of digits is the sum of integers of K

JVM architecture, classloader, parental delegation mechanism
随机推荐
如何用 Sysbench 测试 TiDB
05_队列
Table responsive layout tips
06_栈和队列转换
C language exercises - (array)
19_ Redis_ Manually configure the host after downtime
08_ 串
Tidb data migration scenario overview
Learn the method code example of converting timestamp to uppercase date using PHP
17_Redis_Redis发布订阅
HUSTPC2022
LeetCode_ String_ Simple_ 412.Fizz Buzz
Practical debugging skills
10_ Redis_ geospatial_ command
MFC timer usage
The past and present lives of visual page building tools
kibana 基础操作
How to write sensor data into computer database
Jenkins Pipeline 应用与实践
AtCoder Beginner Contest 254