Skip to content

Conversation

@gsakkis
Copy link
Contributor

@gsakkis gsakkis commented Jul 12, 2022

SparseTensorSchema.max_partition_weight determines the number of (non-empty) sparse array cells that can fit in a given memory budget. After #153 and #157, these cells may be var-sized in case the key dimension is string.

This PR updates SparseTensorSchema.max_partition_weight to compute the average number of bytes needed for var-sized cells.

@gsakkis gsakkis requested review from georgeSkoumas and ktsitsi July 12, 2022 07:46
@gsakkis gsakkis changed the title Take into account string var-sized fields in SparseTensorSchema.max_partition_weight Take into account var-sized fields in SparseTensorSchema.max_partition_weight Jul 12, 2022
Copy link
Collaborator

@ktsitsi ktsitsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good logic LGTM!

@gsakkis gsakkis force-pushed the gsa/fix-SparseTensorSchema.max_partition_weight branch from 176ced0 to a6aabb7 Compare July 13, 2022 16:44
@gsakkis gsakkis merged commit 651017e into master Jul 13, 2022
@gsakkis gsakkis deleted the gsa/fix-SparseTensorSchema.max_partition_weight branch July 13, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants