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
Loading
Please sign in to comment