Commit 2a7dc4b3 authored by Alexandre Passos's avatar Alexandre Passos Committed by TensorFlower Gardener
Browse files

Internal flag to capture by value in eager.function.Function.

This is accomplished by disallowing creation of "read" operations inside
FuncGraphs when capture_by_value is true, executing those operations
outside the graph instead and bringing the resulting value into the
right context.

This can misbehave somewhat, but should be enough to migrate the few
users of tf.data which rely on capturing by value.

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