Closed hecmay closed 3 years ago
@seanlatias after I comment out the check CHECK_GT(const_size > 0)
, the ExtractIndices()
function will throw out another error complaining that the size cannot be 0.
Why do we have zero-sized allocate node in the first place? This looks more like a bug in flexcnn to me.
Regardless, another pass to prompt error messages. Supposedly, the compiler should never crash.
Actually I checked all the hcl.compute
in the flexcnn.py, and they all look good to me. Not sure. We can take a closer look later
This should have been fixed in https://github.com/cornell-zhang/heterocl/pull/418. Test case added in tests/issues/test_issue_304.py. Please reopen the issue if the error still exists.
After merging with new PR (#303), I tried to run the flexcnn.py. The lowering worked fine, but the code generator complains that some allocate IR node has zero size. Here is the error msg:
The test case is available here: https://github.com/Hecmay/heterocl/blob/fix/samples/flexcnn/flexcnn.py