行业知识
二、TensorFlow结构分析(3)
2026-11-18 16:19:34
来源:互联网转载
���录
1、张量
1.1 张量的类型
1.2 张量的阶
1.3 创建张量的指令
2、张量的变换
3、张量的数学运算
- TF数据流图
- 图与TensorBoard
- 会话
- 张量Tensor
- 变量OP
- 高级API
1、张量
1.1 张量的类型
1.2 张量的阶
def tensor_demo(): # 张量的演示 tensor1 = tf.constant(4.0) tensor2 = tf.constant([1,2,3,4,]) linear_squares = tf.constant([[4],[9],[16],[25]],dtype=tf.int32) print("tensor1:\n",tensor1) print("tensor2:\n", tensor2) print("linear_squares:\n", linear_squares) return None1.3 创建张量的指令
2、张量的变换
3、张量的数学运算
上一篇:服务器授权文件在哪里查看?