TypeError in lava-optimization when a QPsolver execued with lower alpha_d and beta_g values less than solver iterations.
Objective of issue:
- TypeError in lava-optimization when a QPsolver execued with lower alpha_d and beta_g values less than solver iterations.
- AttributeError: 'int' object has no attribute 'shape'.** - for self.decay_counter.shape
Lava version:
**I'm submitting a bug report -
Issue 1.
While running the QPSolver with constant value for alpha ,and alpha_d value less than solver iterations: I hit an exception in the file runtime.py. Further analyzing the exception, printing the traceback for the exception in the file runtime.py- ran into the below statement.
TypeError: ufunc 'right_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''.
I am afraid that the exception is due to right shift operation performed on alpha which is float64 dtype.
Issue 2.
Also, I have encountered another issue after updating work around for alpha and beta. Which I am afraid to see an attribute error for self.decay_counter.shape. The detailed error is as shown below:
self.decay_counter = np.zeros(self.decay_counter.shape) AttributeError: 'int' object has no attribute 'shape'.
Thanks @LVAjay for finding this bug and its root cause, let us take a look and come back to you.
@ashishrao7, Do you know what is the status of this issue opened by @LVAjay? Was this resolved on any of the last releases?
This bug has been fixed by the latest release