Makes ResourceVariables return correct initialized_value and initial_value for object...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 6 Feb 2018 11:11:59 +0000 (03:11 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 6 Feb 2018 11:16:08 +0000 (03:16 -0800)
commit4babfb446d3b904f413652df773ec87d2bd9cb0b
treee428af34bb9da5c028e819de7208728a882f0c8b
parent2341e3f09f8453c64d96f9c1fd870825bb2a3755
Makes ResourceVariables return correct initialized_value and initial_value for objects created from VariableDef protos.

Previously self._initial_value wasn't set in such cases which causes accessing var.initial_value to fail for variables in the imported meta graphs.

PiperOrigin-RevId: 184657191
tensorflow/python/kernel_tests/resource_variable_ops_test.py
tensorflow/python/ops/resource_variable_ops.py