broccoli-ml 0.40.0__tar.gz → 1.0.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: 0.40.0
3
+ Version: 1.0.0
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -85,6 +85,14 @@ class SequencePoolClassificationHead(ClassificationHead):
85
85
  def __init__(self, d_model, linear_module, out_dim, batch_norm=True):
86
86
  super().__init__(d_model, linear_module, out_dim, batch_norm=batch_norm)
87
87
  self.summarize = SequencePool(d_model, linear_module)
88
+ # Rebuild the classification process with the correct summary module:
89
+ self.classification_process = nn.Sequential(
90
+ *[
91
+ self.summarize,
92
+ self.projection,
93
+ self.batch_norm,
94
+ ]
95
+ )
88
96
 
89
97
 
90
98
  class ViTEncoder(nn.Module):
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "broccoli-ml"
3
- version = "0.40.0"
3
+ version = "1.0.0"
4
4
  description = "Some useful Pytorch models, circa 2025"
5
5
  authors = [
6
6
  {name = "Nicholas Bailey"}
File without changes
File without changes