You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile an MXNet model to XIR model but facing this error NotImplementedError: Relay Parametric ReLU to XLayer not implemented
The model can be downloaded from here
Some useful script to import the model -> modify existing one from vitis-ai tvm tutorial here:
Everything run fine until partition_for_vitis_ai() and the error occurred.
I tried to compile it for both ZCU104 and KV260 (SOM on vitis version 1.3), but same error occur.
A quick search lead me to pyxir/python/pyxir/frontend/tvm/relay_tools/relay_l3_math_and_transform.py, where the error is raised. And pyxir/python/pyxir/graph/ops which tells me that PReLU is supported.
Can anyone support me with it? Thanks so much!
P/s: I know that PReLU is not supported by vai_c & DPU according to vitis ai user guide
The text was updated successfully, but these errors were encountered:
@nhphuong91 I created a PR to accept the Relay PReLU operation: #64. You could give it a go to check whether this works for your purposes. As you mentioned PReLU isn't supported by the DPUs in general, however, for the case where all alpha values are the same and equal to 0.1 it reduces to a Relay LeakyReLU with alpha=0.1, which is supported on some DPUs. That functionality isn't supported in this PR yet though. Do you expect to need that?
@jtuyls I managed to replace them with LeakyReLU and luckily, the result doesn't change. And even luckier that it helps my model to be fully executed on DPU without partition to subgraph.
Anyway, it would be great if you can implement PReLU supported. But this could come after PReLU has been fully supported on DPU
I'm trying to compile an MXNet model to XIR model but facing this error
NotImplementedError: Relay Parametric ReLU to XLayer not implemented
The model can be downloaded from here
Some useful script to import the model -> modify existing one from vitis-ai tvm tutorial here:
Everything run fine until
partition_for_vitis_ai()
and the error occurred.I tried to compile it for both ZCU104 and KV260 (SOM on vitis version 1.3), but same error occur.
A quick search lead me to
pyxir/python/pyxir/frontend/tvm/relay_tools/relay_l3_math_and_transform.py
, where the error is raised. Andpyxir/python/pyxir/graph/ops
which tells me thatPReLU
is supported.Can anyone support me with it? Thanks so much!
P/s: I know that
PReLU
is not supported byvai_c
& DPU according to vitis ai user guideThe text was updated successfully, but these errors were encountered: