摘要: tensor(张量): 数据类型: 1.直接创建向量: tf.constant(张量内容,dtype=数据类型) import tensorflow as tf t=tf.constant([2,3],dtype=tf.int64)#创建一个一阶张量,dtype表示类型,为int64 print(t 阅读全文
posted @ 2021-01-08 11:11 yangqqq 阅读(214) 评论(0) 推荐(0) 编辑