[XLA] Add and use new Literal::MakeTupleOwned overload.
authorJustin Lebar <jlebar@google.com>
Tue, 6 Feb 2018 23:30:40 +0000 (15:30 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 6 Feb 2018 23:34:47 +0000 (15:34 -0800)
commit901d119b938d9ff4239f27fbede488ae3d05d598
treea687dd833716d3e8ef3feddfd4697891431f9698
parent956fb325c72be9ac3c0c9d1f42ab7aad37d3223c
[XLA] Add and use new Literal::MakeTupleOwned overload.

Previously MakeTupleOwned was cumbersome to use, because you had to
explicitly materialize a vector<unique_ptr<Literal>>.  With this new
overload, you can pass unique_ptrs directly.

PiperOrigin-RevId: 184751119
tensorflow/compiler/xla/literal_util.cc
tensorflow/compiler/xla/literal_util.h