标签:col pytho ons class python java print ORC ++
主要编程模式有:
(1)命令式编程 —— Torch
(2)符号式编程 —— TensorFlow
命令式编程:
易理解,命令语句基本没优化:C,Java,C++,Python
符号式编程:
涉及较多的嵌入和优化,运行速度有同比提升
例如:
1 import tensorflow as tf 2 3 a = tf.constant(2) 4 b = tf.constant(3) 5 c = tf.multiply(a, b) 6 d = tf.add(c, 1) 7 8 with tf.Session() as sess: 9 print (sess.run(d))
标签:col pytho ons class python java print ORC ++
原文地址:https://www.cnblogs.com/xyqiu90-365/p/9710437.html