Open hrbigelow opened 5 days ago
Thanks for spotting this, 0-sized array handling is not well defined and we have no tests (internal or external) for it. We will clarify the intended behavior, add tests, and resolve the validation issue, and get back to you.
Hi,
@niketkumar @cpgaffney1,
cc @dionhaefner
The following attempts to serialize a zero-sized array, but it fails validation in
_validate_params
.I believe the problem is that
_validate_params
expects to find for every 'foo/.zarray' entry, a matching data entryfoo/0
. However, this code produces tensorstore entries: 'a/0', 'a/.zarray', 'z/.zarray', but not z/0 since there is no data in the z tensor.I'm actually not sure if tensorstore saves an entry
z/0
or not, or what the intended behavior should be.Any insight would be greatly appreciated!