numpy reshape resize用法
生活随笔
收集整理的這篇文章主要介紹了
numpy reshape resize用法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?
https://docs.scipy.org/doc/numpy/reference/generated/numpy.resize.html
?
a = np.zeros((100,28*28))print(a.shape)b = a.reshape((100,28,28,1))print(b.shape)b = np.resize(b, (100,28*4,28*4,1))print(b.shape)(100, 784)
(100, 28, 28, 1)
(100, 112, 112, 1)
轉載于:https://www.cnblogs.com/adong7639/p/9479817.html
總結
以上是生活随笔為你收集整理的numpy reshape resize用法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: bzoj 1412 [ZJOI2009]
- 下一篇: 转一道容斥原理的题