Make SavedModelTest.testStripDefaultAttrsInconsistentConsumerDefaults work with C...
authorSkye Wanderman-Milne <skyewm@google.com>
Fri, 9 Feb 2018 00:05:31 +0000 (16:05 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 9 Feb 2018 00:09:41 +0000 (16:09 -0800)
commitf87caf7cd62be25a9c7e390b55b4933fcdcc784c
tree2ff94486c422b91c9964d41b3161292e3cc4d61d
parent5a2c810376ad4ea4d55f8eaa696250011c1f5005
Make SavedModelTest.testStripDefaultAttrsInconsistentConsumerDefaults work with C API.

The test originally altered the Python version of the op registry,
which is not reflected in the C API. This changes the test to alter
the serialized node def instead of the op def, and renames the test to
testInconsistentConsumerDefaultAttrs.

PiperOrigin-RevId: 185067838
tensorflow/python/framework/test_ops.cc
tensorflow/python/saved_model/BUILD
tensorflow/python/saved_model/saved_model_test.py