AssertionError: cycle-free graph violated: partition depends on itself #495
-
Hey,
However, when I run I was able to find the node that is causing this error which is the StreamingFCLayer_Batch node which has an input of shape of 1x98x1x500 and an output of shape 1x98x1x500 as can be seen in the graph below. This graph is the intermediate output from to_hls step when building the dataflow architecture. Can anyone see the cause of this issue from the graph or able offer any advice on how to debug this issue? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I believe this can happen if the feature dimension going into a maxpool layer (size=2, stride=2) is not divisible by 2: |
Beta Was this translation helpful? Give feedback.
-
I have a similar issue with my model but i have no maxpool layers this is my model |
Beta Was this translation helpful? Give feedback.
I believe this can happen if the feature dimension going into a maxpool layer (size=2, stride=2) is not divisible by 2:
Input image size 32x32: 32 (padded conv2d) 32 (maxpool) 16 (padded conv2d) 16 (maxpool) 8 ... (Good)
Input image size 30x30: 30 (padded conv2d) 30 (maxpool) 15 (padded conv2d) 15 (maxpool) 7? (Bad?)