broccoli-ml 9.3.0__tar.gz → 9.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: broccoli-ml
3
- Version: 9.3.0
3
+ Version: 9.4.0
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -226,10 +226,11 @@ class RecyclingLinear(nn.Module):
226
226
  idx_tensor = indices
227
227
 
228
228
  if idx_tensor.size(0):
229
- random_weights = self._random_weights(
230
- self.linear.weight.size(0), indices.size(0)
229
+ zeros = torch.zeros(
230
+ (self.linear.weight.size(0), indices.size(0)),
231
+ device=self.linear.weight.device,
231
232
  )
232
- self._update_weights(indices, 1, random_weights, self.optimisers) # dim
233
+ self._update_weights(indices, 1, zeros, self.optimisers) # dim
233
234
  else:
234
235
  return
235
236
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "broccoli-ml"
3
- version = "9.3.0"
3
+ version = "9.4.0"
4
4
  description = "Some useful Pytorch models, circa 2025"
5
5
  authors = [
6
6
  {name = "Nicholas Bailey"}
File without changes
File without changes
File without changes
File without changes