It seems like defining multiple modules with the same function name is forbidden. But the tool directly prints out the TVM stack trace which is probably not the desired behaviour.
Module Definition
I am trying to implement a series of PEs with a for loop:
# define modules with loop
PE = []
for input_a in range(m):
for input_b in range(n):
@hcl.def_([(1,), (1,), (1,), ()])
def pe(a, b, o, x):
with hcl.if_(x == 0):
o += a * b
hcl.return_(a)
with hcl.else_():
hcl.return_(b)
PE.append(pe)
Description
It seems like defining multiple modules with the same function name is forbidden. But the tool directly prints out the TVM stack trace which is probably not the desired behaviour.
Module Definition
I am trying to implement a series of PEs with a for loop:
Error Message