Commit a331eaf5 authored by Tom Hennigan's avatar Tom Hennigan Committed by TensorFlower Gardener
Browse files

Move variable ownership test into extended.variable_created_in_scope.

We want to invert the relationship here, instead of tf.Variable being aware of
strategies, we make strategies keep track of variables created while their
scope was active. This change implements that (at least in terms of the public
API for variables and dist strat).

tf.Variable subclasses created by distribution strategy (e.g.
DistributedVariable) still export a public `distribution_strategy` property.

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