aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/variant_tensor_data.h
Commit message (Collapse)AuthorAge
* [TF] Variant improvements.Gravatar Eugene Brevdo2018-09-11
| | | | | | | | | | | | | | | | | | 1. Change Variant Decode to accept VariantTensorData (non-ref). This should allow some optimization in the future. In the meantime it means removing the variant.h include from tensor.h, since variant_encode_decode.h now relies on tensor.h and variant.h now relies on that. It also means we found a bunch of places where tensor.proto.h, variant.h, and mutex.h were being imported through tensor.h (along with a bunch of other crap); so now we directly import them in order to compile. 2. Move Variant registry to use TypeIndex instead of a TypeName string; this should speed up registry lookups. PiperOrigin-RevId: 212478896
* fix C++ header guards.Gravatar A. Unique TensorFlower2018-08-21
| | | | PiperOrigin-RevId: 209679086
* Immutable differentiable tf lists.Gravatar Alexandre Passos2018-01-12
| | | | | | This implements just the basic operations for pushing, popping, stacking, and unstacking. Operations to create an empty list of a known size and to set / get individual elements by index forthcoming. PiperOrigin-RevId: 181803880
* Make VariantTensorData::tensors_size() const.Gravatar Saurabh Saxena2017-10-04
| | | | PiperOrigin-RevId: 171063397
* Add shape op registry for unary Variant tensors.Gravatar Eugene Brevdo2017-08-22
| | | | | | | Also simplify life for users who want to use VariantTensorData.{set/get}_metadata and have POD metadata types. PiperOrigin-RevId: 166097498
* Variant objects can now be used inside the TensorFlow execution graph.Gravatar Eugene Brevdo2017-08-16
| | | | | | | | | | | | | | | | | Includes modifications and bugfixes to Variant and Tensor objects. The most significant change is that a Variant storing a VariantTensorDataProto acts like the data type inside the stored proto. This means that its TypeName() is the typename of the pre-serialized data object, and .get<> has been renamed to MaybeDecodeAndGet<>. Calling MaybeDecodeAndGet<OriginalType> performs a Decode under the hood. Calling MaybeDecodeAndGet<OriginalType> on a **const** Variant of VariantTensorDataProto causes a CHECK failure. Also added proper TypeName() for unboxed primitive types (int, ...). PiperOrigin-RevId: 165510197
* Automated g4 rollback of changelist 163547070Gravatar Gunhan Gulsoy2017-08-01
| | | | PiperOrigin-RevId: 163872832
* Automated g4 rollback of changelist 163510186Gravatar A. Unique TensorFlower2017-07-28
| | | | PiperOrigin-RevId: 163547070
* Create VariantTensorData to use instead of VariantTensorDataProto.Gravatar Gunhan Gulsoy2017-07-28
PiperOrigin-RevId: 163510186