Lift ops to the global graph if all graphs are building functions
authorAkshay Agrawal <akshayka@google.com>
Wed, 28 Feb 2018 21:00:30 +0000 (13:00 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 28 Feb 2018 21:04:33 +0000 (13:04 -0800)
commit757a71e886fb9328b19b0ba15658e49cfa7cc323
tree5efafcd63b796446e9395821aecb53ff0bb4ed2b
parent8a31fec675f3f1ade28a9a8f38cc8f72d9573256
Lift ops to the global graph if all graphs are building functions

This change ensures that, when all graphs are building functions, `init_scope`
lifts ops into the global graph.

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