标签:flex its dia line let different operation orm perm
Eager execution is (1) a NumPy-like library for numerical computation with support for GPU acceleration and automatic differentiation, and (2) a flexible platform for machine learning research and experimentation. It‘s available as tf.contrib.eager, starting with version 1.50 of TensorFlow.
import tensorflow as tf
import tensorflow.contrib.eager as tfe
tfe.enable_eager_execution() # Call this at program start-up
and lets you write code that you can easily execute in a REPL, like this
x = [[2.]] # No need for placeholders!
m = tf.matmul(x, x)
print(m) # No sessions!
# tf.Tensor([[4.]], shape=(1, 1), dtype=float32)
For more details, check out lecture slides 04.
Tensorflow Eager execution and interface
标签:flex its dia line let different operation orm perm
原文地址:https://www.cnblogs.com/kexinxin/p/10162829.html