diff options
author | 2017-07-21 10:18:08 -0700 | |
---|---|---|
committer | 2017-07-21 10:22:30 -0700 | |
commit | fce5222dcf4d563a23055efeee89599dc36539c0 (patch) | |
tree | 931f01a084880e748eb1feb89fdf1bd2fe6b25d4 /tensorflow/python/__init__.py | |
parent | 8e059376b5d9bbce159d6de2af5307210209ff5c (diff) |
Added DT_VARIANT type.
A tensor with DT_VARIANT type can store arbitrary C++ data structures.
DT_VARIANT is implemented using a type-erased data structure similar to
std::any, but with extensions to make it compatible with tensorflow::Tensor.
In particular, Encode and Decode methods need to be provided by C++ classes
whose objects are stored in Variant.
PiperOrigin-RevId: 162754827
Diffstat (limited to 'tensorflow/python/__init__.py')
-rw-r--r-- | tensorflow/python/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/python/__init__.py b/tensorflow/python/__init__.py index 827e4c53ee..2fd8fc8688 100644 --- a/tensorflow/python/__init__.py +++ b/tensorflow/python/__init__.py @@ -208,6 +208,7 @@ _allowed_symbols.extend([ 'uint16', 'uint8', 'resource', + 'variant', ]) # Export modules and constants. |