博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
np.squeeze():把张量中维度为1的维度去掉
阅读量:3959 次
发布时间:2019-05-24

本文共 174 字,大约阅读时间需要 1 分钟。

import numpy as np n_dim_data = np.random.rand(10,1,10,1,1)n_dim_squeeze = np.squeeze(n_dim_data)print(n_dim_data.shape) ## (10,1,10,1,1)print(n_dim_squeeze.shape) ## (10,10)

转载地址:http://kfmzi.baihongyu.com/

你可能感兴趣的文章
ipcalc
查看>>
网络 linux 禁止 ping
查看>>
ELF 格式详解
查看>>
chromium 使用
查看>>
linux 检测虚拟机类型
查看>>
go - 运行时:内存不足
查看>>
top 使用
查看>>
Linux Netlink通信机制详解
查看>>
rsync 远程同步
查看>>
nano使用
查看>>
c函数
查看>>
linux 链接
查看>>
centos6.x 添加开机启动服务
查看>>
zfs 简单使用
查看>>
linux EXT4格式分区扩容
查看>>
实现 du 命令
查看>>
git revert reset 使用
查看>>
一些比较好的golang安全项目
查看>>
HTTP状态码
查看>>
go语言
查看>>