cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

[Testing] Fix const tensor tests to exclude overflow #331

Closed seanlatias closed 3 years ago

seanlatias commented 3 years ago

The previous unit tests for constant tensors were designed incorrectly. The tested bitwidth range does not match the generated random number range. This PR fixed that.