04 2022 档案

摘要:#定义一个矩阵,比如2行2列全为0tensor1 = tf.zeros([2,2])print(tensor1) 运行结果: tf.Tensor([[0. 0. ][0. 0. ]], shape=(2, 2), dtype=float32) #定义全为1的矩阵ones_tsr = tf.ones( 阅读全文
posted @ 2022-04-25 16:44 我刚好路过 阅读(48) 评论(0) 推荐(0)