Skip to content

Commit

Permalink
Bug fix in Annealing neuron
Browse files Browse the repository at this point in the history
  • Loading branch information
phstratmann authored Mar 1, 2024
1 parent 10e199c commit ce2c270
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ def __init__(
self.delta_temperature_out = OutPort(shape=shape)

self.temperature = Var(shape=shape, init=np.int_(max_temperature))
self.steps_per_temperature = Var(
shape=shape, init=np.int_(steps_per_temperature)
)
self.temperature_counter = Var(
shape=shape, init=np.int_(steps_per_temperature)
)

@property
def shape(self) -> ty.Tuple[int, ...]:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2022 Intel Corporation
# Copyright (C) 2022-2024 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
# See: https://spdx.org/licenses/
import numpy as np
Expand Down
4 changes: 4 additions & 0 deletions src/lava/lib/optimization/solvers/generic/nebm/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (C) 2022-2024 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
# See: https://spdx.org/licenses/

import numpy as np

from lava.lib.optimization.solvers.generic.nebm.process import NEBM
Expand Down

0 comments on commit ce2c270

Please sign in to comment.