2019年1月18日

tf.Session()、tf.InteractiveSession()

摘要: tf.Session()和tf.InteractiveSession()的区别 官方tutorial是这么说的: The only difference with a regular Session is that an InteractiveSession installs itself as t 阅读全文

posted @ 2019-01-18 16:37 AI大道理 阅读(833) 评论(0) 推荐(0)

np.random.randn()、np.random.rand()、np.random.randint()

摘要: (1)np.random.randn()函数 语法: np.random.randn(d0,d1,d2……dn) 1)当函数括号内没有参数时,则返回一个浮点数; 2)当函数括号内有一个参数时,则返回秩为1的数组,不能表示向量和矩阵; 3)当函数括号内有两个及以上参数时,则返回对应维度的数组,能表示向 阅读全文

posted @ 2019-01-18 16:15 AI大道理 阅读(6778) 评论(0) 推荐(0)

导航