diff options
author | 2017-07-20 14:44:20 -0700 | |
---|---|---|
committer | 2017-07-20 14:47:43 -0700 | |
commit | 19cc9a796d86b5cf2193e7648ac9ae05c5efb53f (patch) | |
tree | 6966d04d3470d74844f188a209f1cb22026eae40 /tensorflow/python/__init__.py | |
parent | 5dbae025a1b61155883c2f3c868bed9e53000e09 (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: 162668355
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. |