摘要: 1 创建 1.1 constant()方法 import tensorflow as tf tf.constant(1) #创建一个整型张量 <tf.Tensor: id=4, shape=(), dtype=int32, numpy=1> tf.constant(1.) #创建一个浮点型张量 <t 阅读全文
posted @ 2020-09-21 20:23 Chenjin2018 阅读(420) 评论(0) 推荐(0) 编辑