Commit 9fffd260 authored by Igor Ganichev's avatar Igor Ganichev Committed by TensorFlower Gardener
Browse files

Support XLA_CPU/GPU devices in eager runtime

Compiling a defun can be done with:

  @function.defun
  def f(x):
    return x + 1

  with tf.device("XLA_GPU"):
    f(5)

PiperOrigin-RevId: 224560868
parent 48a224c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment