Commit 105dd2aa authored by Eugene Brevdo's avatar Eugene Brevdo Committed by TensorFlower Gardener
Browse files

Implement Variant changes suggested by Manjunath Kudlur; simplify API.

1. Remove the self-mutating MaybeDecodeAndGet<>() in favor of the simple,
   original get<>().
2. Remove mutexes and locks from everything.

To allow tensorflow RPC to continue working transparently:

3. Add a registration mechanism for Variant decoding -- used by
   variant_coding within TensorFlow.
4. Add a MaybeDecodeAndCopy<>() const; for use by callers of Session::Run
   that get Tensors back which may contain encoded Variants.
5. Small bugfixes to Variant Encode impls and tensor FromProtoField and
   variant_coding.

PiperOrigin-RevId: 166383211
parent 9380e3a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment