Skip to content
Unverified Commit 7d3c4d1b authored by Pierre Paleo's avatar Pierre Paleo Committed by GitHub
Browse files

Fix buffer size computation (#660)



* Use numpy.prod (keep data type) for computing buffer size

* Add comment on computation of 'size'

* Check individual shape components

* Force computation on uint type

* Add check on each dimension datatype

* Add test_allocation_with_various_shape_scalar_types

* Fix flake8 issues

* Fix shape check

* Replace any() with np.any()

* Shape comp: comment phrasing, convert to array only once

Co-authored-by: default avatarAndreas Kloeckner <inform@tiker.net>
parent 17384cd1
Loading
Loading
Loading
Pipeline #364959 passed with warnings with stage
in 1 hour, 20 minutes, and 24 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment