| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PiperOrigin-RevId: 209679086
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PiperOrigin-RevId: 171063397
|
|
|
|
|
|
|
| |
Also simplify life for users who want to use
VariantTensorData.{set/get}_metadata and have POD metadata types.
PiperOrigin-RevId: 166097498
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PiperOrigin-RevId: 163872832
|
|
|
|
| |
PiperOrigin-RevId: 163547070
|
|
PiperOrigin-RevId: 163510186
|