analogdevicesinc / ai8x-synthesis

Quantization and Synthesis (Device Specific Code Generation) for ADI's MAX78000 and MAX78002 Edge AI Devices
Apache License 2.0
55 stars 47 forks source link

missing dummy entries for all bias related arrays when operator[seq] == opn.NONE #222

Closed khpeterson closed 2 years ago

khpeterson commented 2 years ago

While trying to ai8xize a network with an "op: none" layer I got the following exception:

Traceback (most recent call last):
  File "/Users/khp/Dropbox/Projects/Documents/ML/ai8x-synthesis/./ai8xize.py", line 29, in <module>
    main()
  File "/Users/khp/Dropbox/Projects/Documents/ML/ai8x-synthesis/izer/izer.py", line 60, in main
    onnxcp.load(
  File "/Users/khp/Dropbox/Projects/Documents/ML/ai8x-synthesis/izer/onnxcp.py", line 885, in load
    del bias_min[seq - 1]
IndexError: list assignment index out of range

Adding dummy entries for all of the bias related arrays when operator[seq] == opn.NONE cleaned up the error.

The change seems pretty simple/obvious but I'm new to this repo so apologies in advance if I'm off the mark.

github-actions[bot] commented 2 years ago

This PR has been marked stale because it has been open for for over 30 days with no activity. It will be closed automatically in 10 days unless a comment is added or the "Stale" label is removed.

khpeterson commented 2 years ago

This PR has been marked stale because it has been open for for over 30 days with no activity. It will be closed automatically in 10 days unless a comment is added or the "Stale" label is removed.

Anything I can do to move this along?

github-actions[bot] commented 2 years ago

This PR has been marked stale because it has been open for for over 30 days with no activity. It will be closed automatically in 10 days unless a comment is added or the "Stale" label is removed.