理解Tensorflow的编程模式

在编程模式中一般有两种编程模式 1.命令式编程:容易理解,命令语句基本无优化,例如 a=b+c 2.符号式编程:涉及较多的嵌入和优化,运行速度有同比提升,用计算流图来表示,上面的语句则可变为: b=tf.constant(1) c=tf.constant(2) a=tf.add(b,c) Tensorflow数据模型:Tensor(张量) Tensorflow数据流图的构成:数据(Data)、流(
相关文章
相关标签/搜索