- 博客(3)
- 收藏
- 关注
原创 tensorflow2 入门学习基础1-1
1、tf2中的constantimport tensorflow as tf# 1.创建输入常量a = tf.constant(3.) b = tf.constant(5.)# 2.直接计算并打印print('a+b=',a+b)a+b= tf.Tensor(8.0, shape=(), dtype=float32)import tensorflow as tfa = tf.constant([1, 5], dtype=tf.int64) print("a:", a...
2020-10-15 00:17:40 164
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人