Make import_graph_def add default attr values with the C API enabled.
authorSkye Wanderman-Milne <skyewm@google.com>
Fri, 9 Feb 2018 22:25:28 +0000 (14:25 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 9 Feb 2018 22:31:52 +0000 (14:31 -0800)
commited5f003cc2c542c3c545369f71d4b57429da33fc
treef10da814c2e75a3c09b0759f25de189d8af51395
parent68a767e0aaa6fb3f01f5ce8f4fe533f36fcf7f82
Make import_graph_def add default attr values with the C API enabled.

It turns out that the original Python code modifies the graph_def argument
to add default attr values. I'm not sure if the behavior is covered by
our API guarantees since it's not documented, but let's keep the behavior
consistent for now.

PiperOrigin-RevId: 185193037
tensorflow/python/framework/importer.py
tensorflow/python/saved_model/saved_model_test.py