diff options
author | Suharsh Sivakumar <suharshs@google.com> | 2017-11-07 08:53:39 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-11-07 08:57:41 -0800 |
commit | 955b506d24a63e77772ecda28af9cab1ceffb9e7 (patch) | |
tree | 629d0b6016ce403091c0b82d86b074af34525155 /third_party/grpc/grpc.patch | |
parent | da1b1d28faca9aa65e832b9bbada8d509ea2df7d (diff) |
variables_to_restore: Differentiate python variables by string name rather than object.
variables_to_restore ensured that duplicate variables weren't added to the return map by comparing python variable object. Normally there is only one Variable object for each underlying variable, so this wasn't a problem. But when one initializes a graph by importing a GraphDef, duplicate python Variable objects are created for each occurrence of a variable in a collection (say, global variables and moving average variables).
This change fixes variables_to_restore to work with an imported graph def by not comparing Variable objects.
PiperOrigin-RevId: 174861804
Diffstat (limited to 'third_party/grpc/grpc.patch')
0 files changed, 0 insertions, 0 deletions