08TensorFlow2.0基础--8.2创建张量

使用tf.constant或tf.convert_to_tensor()创建张量的使用,一定不能说列表形式,如果报错list的话就去检查缺不缺[ ] 没有给出数据类型,默认为int32,即32位整型。
相关文章
相关标签/搜索