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.21k stars 4.08k forks source link

tf.split() 函数5.1.2 P96 #113

Closed YuanchenHua closed 4 years ago

YuanchenHua commented 4 years ago

tf.split() 官方文档 参数顺序是value,num_or_size_splits,axis=0,num=None,name='split' 书中是value,axis,num_or_size_splits,num=None,name='split' 在不指定参数名传参的时候,用书中的顺序会报错。

YuanchenHua commented 4 years ago

此类情况好多,我建议在介绍函数的时候,如果是关键字参数,还是在一开始介绍的时候,把关键字参数=默认值写上,避免初学者把必须参数和关键字参数混淆。

dragen1860 commented 4 years ago

收到,谢谢!