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] Enable select API to accept Python expressions #135

Closed seanlatias closed 4 years ago

seanlatias commented 4 years ago

A quick fix to #134. Now the "select" API should have the same behavior as TVM's "select" API. The following examples should be working.

select(2 > 1, x, y)
select(0, True, False)
select(True, 50, 60)