当前位置:网站首页>Pytoch saves tensor to Mat file
Pytoch saves tensor to Mat file
2022-07-02 15:29:00 【Yesterday, today, tomorrow】
Pytorch preservation tensor To .mat file
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
- 13_Redis_事务
- Implementation of n queen in C language
- 19_ Redis_ Manually configure the host after downtime
- Tidb hybrid deployment topology
- 工程师评测 | RK3568开发板上手测试
- N皇后问题的解决
- Steps for Navicat to create a new database
- Bing. Com website
- Engineer evaluation | rk3568 development board hands-on test
猜你喜欢
怎样从微信返回的json字符串中截取某个key的值?
19_Redis_宕机后手动配置主机
Practice of compiling principle course -- implementing an interpreter or compiler of elementary function operation language
LeetCode刷题——奇偶链表#328#Medium
Bing.com网站
How to find a sense of career direction
[c voice] explain the advanced pointer and points for attention (2)
损失函数与正负样本分配:YOLO系列
JVM architecture, classloader, parental delegation mechanism
搭建自己的语义分割平台deeplabV3+
随机推荐
LeetCode刷题——奇偶链表#328#Medium
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
Practical debugging skills
Steps for Navicat to create a new database
怎样从微信返回的json字符串中截取某个key的值?
How to choose a third-party software testing organization for automated acceptance testing of mobile applications
数据分析常见的英文缩写(一)
5. Practice: jctree implements the annotation processor at compile time
20_Redis_哨兵模式
Topology architecture of the minimum deployment of tidb cluster
QML pop-up frame, customizable
Record an interview
How to conduct TPC-C test on tidb
03_線性錶_鏈錶
Bing. Com website
自定义异常
Libcurl Lesson 13 static library introduces OpenSSL compilation dependency
. Solution to the problem of Chinese garbled code when net core reads files
Solve the problem of frequent interruption of mobaxterm remote connection
I made an istio workshop. This is the first introduction