本文共 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/