Tensorflow2.1基础知识---张量

张量(Tensor):多维数组(列表) 阶:张量的维数 张量能够表示0阶到n阶数组(列表) 基本的数据类型 tf.int,tf.float tf.bool tf.string 生成一个张量 如何建立一个张量 用法:tf.constant(张量内容,dtype=数据类型(可选)) 例子:python import tensorflow as tf #建立一个张量 a = tf.constant(
相关文章
相关标签/搜索