【问题标题】:Tensorflow - XLA | How are TF ops lowered to XLA for trainingTensorFlow - XLA | TF ops 如何降低到 XLA 进行训练
【发布时间】:2017-07-17 14:06:49
【问题描述】:

在训练期间如何将 tensorflow 操作降低到 XLA 操作?

tensorflow/compiler/tf2xla/kernels 下的文件只定义了 ComputationBuilder 中操作方面的前向传递/推理。

这个问题与“Tensorflow - XLA | Passing tensors to external functions at runtime”有关,因为我需要降低到 XLA 操作的 TF 操作以在训练和推理期间传递张量。也请分享您对另一个问题的看法。

谢谢

【问题讨论】:

    标签: tensorflow tensorflow-xla


    【解决方案1】:

    我的理解是,Tensorflow 会计算反向传播所需的导数它将图形传递给 tf2xla 进行降低。使用 tf2xla 将所有用于训练和推理的 Tensorflow 操作降低到 XLA;没有其他机制。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-12-08
      • 2020-07-12
      • 1970-01-01
      • 2021-09-18
      • 1970-01-01
      • 2021-10-28
      • 2021-12-20
      相关资源
      最近更新 更多