broccoli-ml 5.1.3__tar.gz → 5.1.4__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: 5.1.3
3
+ Version: 5.1.4
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -555,7 +555,7 @@ class ViT(nn.Module):
555
555
  sequence_averages = torch.mean(batch_averages, dim=-1, keepdim=False)
556
556
  n_bos_tokens = self.encoder.encoder[-1]._bos_tokens
557
557
  just_bos = sequence_averages[:, :, :n_bos_tokens]
558
- return F.softmax(just_bos, dim=-1) # (layer, head, bos_token)
558
+ return F.softmax(just_bos, dim=1) # (layer, head, bos_token)
559
559
 
560
560
  def reset_parameters(self):
561
561
  self.encoder.reset_parameters()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "broccoli-ml"
3
- version = "5.1.3"
3
+ version = "5.1.4"
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