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

第四章,4.9.3,P33 #109

Closed philipxue39 closed 4 years ago

philipxue39 commented 4 years ago

x = tf.constant([1.,2.]) x = 10**x tf.math.log(x)/tf.math.log(10.) 输出有些问题,应该是和最开始的输入一样。 <tf.Tensor: id=252, shape=(2,), dtype=float32, numpy=array([1., 2.], dtype=float32)> Snipaste_2019-12-04_17-34-48

dragen1860 commented 4 years ago

这个输出估计搞混了,代码可以的。 谢谢。