Skip to content

Local variable 'distribution_factor' referenced before assignment when clip method is scale #373

@LochanaMendis

Description

@LochanaMendis

File "quantize.py", line 29, in
main()
File "/ai_chip/ai8x-synthesis-ws/izer/quantize.py", line 297, in main
convert_checkpoint(args.input, args.output, args)
File "/ai_chip/ai8x-synthesis-ws/izer/quantize.py", line 213, in convert_checkpoint
if distribution_factor:
UnboundLocalError: local variable 'distribution_factor' referenced before assignment

This is just a small logic error. Should be an easy fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions