Closed seanlatias closed 4 years ago
In this PR, we enable getting bit/slice from expressions.
A = hcl.placeholder((10,)) B = hcl.compute(A.shape, lambda x: (A[x]+1)[5])
For more examples, please refer to tests/test_dsl_basic.py.
tests/test_dsl_basic.py
Setting bit/slice to expressions is not allowed. An error message would pop out.
In this PR, we enable getting bit/slice from expressions.
For more examples, please refer to
tests/test_dsl_basic.py
.