Skip to content

Commit f3c52f9

Browse files
authored
Merge pull request #120 from web-genie-ai/feat/set-weight
chore: set weights
2 parents 964a1e9 + 86baff3 commit f3c52f9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

neurons/validators/validator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ def print_weights(self, raw_weights: np.ndarray):
124124
console.print(weights_table)
125125

126126
def set_weights(self):
127-
with self.lock:
128-
current_session = self.session
129-
last_set_weights_session = self.score_manager.last_set_weights_session
130-
if last_set_weights_session == current_session - 1:
131-
return
132-
127+
# with self.lock:
128+
# current_session = self.session
129+
# last_set_weights_session = self.score_manager.last_set_weights_session
130+
# if last_set_weights_session == current_session - 1:
131+
# return
132+
current_session = self.session
133133
scores = self.score_manager.get_scores(current_session - 1)
134134
# Calculate the average reward for each uid across non-zero values.
135135
# Replace any NaN values with 0.

0 commit comments

Comments
 (0)