Skip to content

self.calib_counter returning None type in modules/bmm.py #185

@lorsonblair

Description

@lorsonblair

In forward(self, m1, m2) (line 183), if self.calib_counter > 0: (line 195) throws an error (cannot compare None type to int) as self.calib_counter is somehow type None. self.calib_counter is of int type and has the value of qmodel_calibration_new after declaration and assignment on line 113 using self.register_buffer("calib_counter", ...). In the previous version (downloaded and installed Jan 2025), that line was: if self.calib_counter: ... , which I reverted to to avoid the error.

Any idea why that may be causing the error? I'm running pytorch 2.4.1 with Cuda on aarch64, python=3.10. Thanks for your response. Let me know if you need additional details.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions