Skip to content

Commit

Permalink
lintin
Browse files Browse the repository at this point in the history
  • Loading branch information
phstratmann committed Sep 27, 2023
1 parent 427df92 commit 32da178
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def __init__(
min_temperature: ty.Union[int, npty.NDArray],
delta_temperature: ty.Union[int, npty.NDArray],
steps_per_temperature: ty.Union[int, npty.NDArray],
exp_temperature: ty.Union[int, npty.NDArray] = None,
annealing_schedule: str = 'linear',
exp_temperature: ty.Union[int, npty.NDArray],
annealing_schedule: str,
shape: ty.Tuple[int, ...] = (1,),
):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,6 @@ def __init__(
self.added_input = InPort(shape=shape)
self.messages = OutPort(shape=shape)
self.local_cost = OutPort(shape=shape)
#DELETE THIS AGAIN
print("WRONG MODEL2")
self.integration = Var(shape=shape, init=0)
self.temperature = Var(shape=shape, init=temperature)
self.refract = Var(shape=shape, init=refract)
Expand Down
2 changes: 0 additions & 2 deletions src/lava/lib/optimization/solvers/generic/nebm/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def __init__(
self.spk_hist = Var(
shape=shape, init=(np.zeros(shape=shape) + init_value).astype(int)
)
#DELETE THIS AGAIN
print("WRONG MODEL1")
self.temperature = Var(shape=shape, init=int(temperature))
self.refract = Var(shape=shape, init=refract)
self.refract_counter = Var(shape=shape, init=refract_counter)
Expand Down
2 changes: 1 addition & 1 deletion src/lava/lib/optimization/solvers/generic/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def _get_run_config(
NEBMSimulatedAnnealingAbstract:
NEBMSimulatedAnnealingAbstractModel,
NEBMSimulatedAnnealing: NEBMSimulatedAnnealingNcModel,
Annealing:AnnealingNcModel,
Annealing: AnnealingNcModel,
CostIntegrator: CostIntegratorNcModel,
ProportionalIntegralNeuronsPIPGeq: NcL2ModelPI,
ProjectedGradientNeuronsPIPGeq: NcL2ModelPG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ def __init__(self, proc):
if neuron_model == "nebm":
temperature = proc.hyperparameters.get("temperature", 1)
refract = proc.hyperparameters.get("refract", 0)
# DELETE THIS AGAIN
print("WRONG MODEL3")
refract_counter = proc.hyperparameters.get("refract_counter", 0)
init_value = proc.hyperparameters.get(
"init_value", np.zeros(shape, dtype=int)
Expand Down Expand Up @@ -430,8 +428,6 @@ def __init__(self, proc):
shape = proc.proc_params.get("shape", (1,))
temperature = proc.proc_params.get("temperature", (1,))
refract = proc.proc_params.get("refract", (1,))
#DELETE THIS AGAIN
print("WRONG MODEL4")
refract_counter = proc.proc_params.get("refract_counter", (0,))
init_value = proc.proc_params.get("init_value", np.zeros(shape))
init_state = proc.proc_params.get("init_state", np.zeros(shape))
Expand Down

0 comments on commit 32da178

Please sign in to comment.