cornell-zhang / heterocl

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

[API] Allow string initialization for `hcl.struct` #411

Closed seanlatias closed 3 years ago

seanlatias commented 3 years ago

Fixed issue: #410

Detailed description: Enable the string initialization in types.py. Also, added a __eq__ method in the Type base class for checking the equivalence between types.

Link to the tests: tests/issues/test_issue_410.py