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

[Type] Fix type comparison (Fix #492) #495

Closed zzzDavid closed 1 year ago

zzzDavid commented 1 year ago

Summary

This PR fixes #492, the __eq__ implementation of Type class. The previous implementation did not compare the type of Type instances.

Changes

Test

tests/test_dtype.py::test_type_comparision