Commit 1a45b12b authored by Ilya Biryukov's avatar Ilya Biryukov Committed by TensorFlower Gardener
Browse files

Copy dimensions array into GroupIterable instead of storing pointers to it.

This avoid breakages when passing temporary objects, e.g.
  auto it = sparse_tensor.group({0});
  for (auto _ : it) { /* ... */ }

The API was easy to misuse before and this actually causes test failures when
compiling with a new clang version.

PiperOrigin-RevId: 200097909
parent 76fc9882
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment