Tensorflow2.1基礎知識---張量

張量(Tensor):多維數組(列表) 階:張量的維數 張量能夠表示0階到n階數組(列表) 基本的數據類型 tf.int,tf.float tf.bool tf.string 生成一個張量 如何建立一個張量 用法:tf.constant(張量內容,dtype=數據類型(可選)) 例子:python import tensorflow as tf #建立一個張量 a = tf.constant(
相關文章
相關標籤/搜索