1. 首页
  2. 数据库
  3. 其它
  4. tensorflow2学习第一天

tensorflow2学习第一天

上传者: 2020-12-22 12:55:07上传 PDF文件 57.05KB 热度 29次
第一天学习数据类型 数据类型 import tensorflow as tf tf.constant(1) 就是一个整数类型的1 tf.constant(1.) 数值类型的学习 scalar是一个单实数,维度为0,shape[] a=1.2 tf.__version__ '2.0.0-rc0' 标量一个数字 向量一个数组 矩阵多维数组 对于tensorflow2来说,tensor为其格式主要对与数据的维度大于2 aa = tf.constant(1.2) #创建一个标量 type(a) float type(aa) tensorflow.python.framewo
下载地址
用户评论