Tweak the context stack so init_scope works with eager Graphs
authorAllen Lavoie <allenl@google.com>
Mon, 9 Apr 2018 21:52:53 +0000 (14:52 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 9 Apr 2018 21:54:54 +0000 (14:54 -0700)
commit265099d262225a4b54619ee591d261e8146051e4
treec4a1207ba31a7f88c094a86befc2d310282277b2
parent9b18bd70b5739d646b21b7d45de0e5c96b8cc2a1
Tweak the context stack so init_scope works with eager Graphs

Previously breaking out into Graphs created with eager execution enabled would
enter the graph but not re-enable eager execution.

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