diff options
author | A. Unique TensorFlower <nobody@tensorflow.org> | 2016-05-20 14:52:16 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-05-20 16:03:17 -0700 |
commit | cde02b84f55c0c3c09fb33a1ab5c58a476606d88 (patch) | |
tree | cc0196c668a1169af94736fd13ea8e46142a9539 /tools | |
parent | a824c3c87226345de45432c329c2b21e17854d0e (diff) |
Add create_scope_now option to make_template.
This is a non-breaking API change.
This gives the option of having a Template capture a scope at construction
time, rather than the time of first __call__. This can prove useful in a
situation where the Template is created but than passed into other code to be
called much later - it may be hard to be sure of the eventual scope name without
understanding all the lower level parts of the model, and potentially
configuration changes could lead to a different first __call__ location,
meaning a differently named variable, and potential problems saving and
loading.
By contrast, if create_scope_now_ is set to True, then wherever the template is
constructed defines the scope name. Lower level code which actually calls it is
free to switch around the order of __call__ without changing the variable name.
Change: 122874739
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions