![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
GXM_Nothing
这个作者很懒,什么都没留下…
展开
-
tf.concat与tf.stack(仅个人理解)
tf.concat与tf.stack(仅个人理解) tf.concat是沿某一维度拼接shape相同的张量,拼接生成的新张量维度不会增加。而tf.stack是在新的维度上拼接,拼接后维度加1 例如: import tensorflow as tf a = tf.constant([[1,2,3],[4,5,6]]) b = tf.constant([[7,8,9],[10,11,12]]) ab1...转载 2019-03-12 11:06:29 · 6251 阅读 · 0 评论 -
numpy.random.seed()
numpy.random.seed()函数可使得随机数具有预见性,即当参数相同时使得每次生成的随机数相同;当参数不同或者无参数时,作用与numpy.random.rand()函数相同,即多次生成随机数且每次生成的随机数都不同。 ...原创 2019-03-13 13:50:17 · 230 阅读 · 0 评论