Make init_scope preserve the inner device stack when lifting into a graph.
authorAkshay Agrawal <akshayka@google.com>
Tue, 22 May 2018 17:26:00 +0000 (10:26 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 22 May 2018 17:28:31 +0000 (10:28 -0700)
commit13e7f92d120de8f6f548493eb49b74810888ffd4
treef89fb743454c7e1edbc0a0d3c6645df643dd7584
parent5e7d41d3aeb8e2d39ddf9270a1c10d907836dece
Make init_scope preserve the inner device stack when lifting into a graph.

Eager execution doesn't implement device stacks and in particular it doesn't support device functions (which determine the device on a per-op basis), so in general it's not possible to do the same when lifting into the eager context.

PiperOrigin-RevId: 197583446
tensorflow/python/framework/ops.py
tensorflow/python/framework/ops_test.py