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

Support returning resource handles from function in XLA

There are a couple of reasons to do this:
 - resource handle are regular tensors part of a public API that
 can potentially be returned from a function.
 - When tfe.defun is executed under GradientTape, it generates a
 function returning resource handles in certain cases.

This CL adds support for returning resource handles from an XLA
compiled function. These resource handles must have been passed as
arguments to the function. In other words, we don't yet support
returning resources created inside the function. tfe.defun never
makes functions that create resources.

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