Skip to content

Commit

Permalink
replica_seeds -> _replica_seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
APJansen committed Mar 8, 2024
1 parent 59e17f1 commit 3c6d024
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions n3fit/src/n3fit/layers/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def __init__(
"Trying to instantiate a preprocessing factor with no basis information"
)
self.flav_info = flav_info
self.replica_seeds = replica_seeds
# This variable contains the next seed to be used to generate weights
self._replica_seeds = replica_seeds
self.large_x = large_x
self.num_replicas = len(replica_seeds)

Expand Down Expand Up @@ -85,9 +86,9 @@ def generate_weight(self, name: str, kind: str, dictionary: dict, set_to_zero: b
if trainable:
constraint = constraints.MinMaxWeight(minval, maxval)

initializer = MultiInitializer(single_replica_initializer, self.replica_seeds, base_seed=0)
initializer = MultiInitializer(single_replica_initializer, self._replica_seeds, base_seed=0)
# increment seeds for the next coefficient
self.replica_seeds = [seed + 1 for seed in self.replica_seeds]
self._replica_seeds = [seed + 1 for seed in self._replica_seeds]

# Generate the new trainable (or not) parameter
newpar = self.builder_helper(
Expand Down

0 comments on commit 3c6d024

Please sign in to comment.