Open Cookiee235 opened 2 months ago
Hi @Cookiee235 ,
The error is caused by a mismatch between the output shape of conv2d and the input shape of relu, which are (1, 64, 56, 56)
and (64, 64, 56, 56)
, respectively. I changed the shape of relu from (64, 64, 56, 56)
to (1, 64, 56, 56)
and it is built successfully.
@xhmelon Thanks for your investigation. Indeed, the Realx IR is invalid and the crash message also gives the correct warning. However, the above Relax IR passes the verify_well_formed
validation and lets us mistakenly consider the Relax IR valid! It will be better if we catch the exception early (i.e., crash in the mod = Module
statement)!
Actual behavior
Steps to reproduce
The given Relax IR passed the IR validity checking but threw a crash when I built it. Could you help me review it? Thanks a lot!
CC @Lunderberg @junrushao