dragen1860 / Deep-Learning-with-TensorFlow-book

深度学习入门开源书,基于TensorFlow 2.0案例实战。Open source Deep Learning book, based on TensorFlow 2.0 framework.
http://www.ai101edu.com
13.2k stars 4.09k forks source link

第4章,维度变换着一节,reshape不会改变内存布局? #228

Open hefvcjm opened 3 years ago

hefvcjm commented 3 years ago

书中提法是reshape得到的视图会与内存布局相悖,但是我认为只要reshape,只要满足两个shape的维度尺寸乘积相等就必然成功,并且 不会改变内存布局