You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 entry foo/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.
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!
The text was updated successfully, but these errors were encountered: