simple adding maxpool lead to AssertionError: cycle-free graph violated: partition depends on itself #1331
Unanswered
aininot260
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use the network from https://github.com/Xilinx/brevitas/blob/dev/src/brevitas_examples/bnn_pynq/models/resnet.py
My export-to-onnx code are listed as follows:
then, I use the build step from https://github.com/Xilinx/finn-examples/blob/feature/rn-18/build/resnet18/build.py
for simple, I made these tiny changes:
all steps works well, bitfile generated successfully
But this model is designed for cifar10, only accept input with 32 x 32
to adapt imagenet 224 x 224, I made some tiny change in https://github.com/Xilinx/brevitas/blob/dev/src/brevitas_examples/bnn_pynq/models/resnet.py, just
set first_maxpool=True
Then, error occured
the adding maxpool leading this error, It only made this change
the step_resnet18_to_hw.onnx shows quite different at begining





the following are before:
the following are after:
I tried some fix steps, such as insert maxpool related steps to custom_steps but failed
To show clearly, I will use https://github.com/Xilinx/finn-examples/blob/feature/rn-18/build/resnet18/resnet18_custom_steps.py as a new start, wondering adjust it to adapt the added maxpool node. all above pics are generated from this code's steps
Beta Was this translation helpful? Give feedback.
All reactions