File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1616# DEALINGS IN THE SOFTWARE.
1717
1818# Define the version of the template module.
19- __version__ = "2.4.0 "
19+ __version__ = "2.4.1 "
2020version_split = __version__ .split ("." )
2121__spec_version__ = (
2222 (10000 * int (version_split [0 ]))
Original file line number Diff line number Diff line change @@ -239,14 +239,14 @@ def set_weights(self):
239239 raw_weights = torch .nn .functional .normalize (self .scores , p = 1 , dim = 0 )
240240
241241 bt .logging .debug ("raw_weights" , raw_weights )
242- bt .logging .debug ("raw_weight_uids" , self .metagraph .uids . to ( "cpu" ) )
242+ bt .logging .debug ("raw_weight_uids" , self .metagraph .uids )
243243 # Process the raw weights to final_weights via subtensor limitations.
244244 (
245245 processed_weight_uids ,
246246 processed_weights ,
247247 ) = bt .utils .weight_utils .process_weights_for_netuid (
248- uids = self .metagraph .uids . to ( "cpu" ) ,
249- weights = raw_weights .to ("cpu" ),
248+ uids = self .metagraph .uids ,
249+ weights = raw_weights .to ("cpu" ). numpy () ,
250250 netuid = self .config .netuid ,
251251 subtensor = self .subtensor ,
252252 metagraph = self .metagraph ,
You can’t perform that action at this time.
0 commit comments