diff options
author | Alexandre Passos <apassos@google.com> | 2018-07-17 07:47:27 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-07-17 07:50:46 -0700 |
commit | e1fb7a248bb2d932a0bed6fc1d2d9e3d91b50e89 (patch) | |
tree | bb99a37dc720eb743dc5a0170dc84265b2da1eaa /third_party/clang_toolchain/download_clang.bzl | |
parent | 2bdc5f12a1e66fd851e2621889c743c3b8da65e5 (diff) |
Makes Variable an abstract base class with a factory-constructing metaclass.
The metaclass, when asked to make instances of Variable, will loop over a
scope of creator functions calling them, before finally bottoming out on
a function which constructs a subclass of Variable, which goes through
the normal route.
This allows us to split Variable from RefVariable and to, in a follow-up CL,
add a use_resource argument to the Variable constructor so it can also return
ResourceVariable.
This is the minimal change to get things working; it does not expose the
creator stack or add the use_resource argument.
PiperOrigin-RevId: 204910138
Diffstat (limited to 'third_party/clang_toolchain/download_clang.bzl')
0 files changed, 0 insertions, 0 deletions