broccoli-ml 0.13.4__tar.gz → 0.13.6__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.13.4
3
+ Version: 0.13.6
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -88,7 +88,7 @@ class SequencePoolClassificationHead(ClassificationHead):
88
88
 
89
89
  def __init__(self, d_model, linear_module, out_dim, batch_norm=True):
90
90
  super().__init__(d_model, linear_module, out_dim, batch_norm=True)
91
- self.summarize = SequencePool()
91
+ self.summarize = SequencePool(d_model, linear_module)
92
92
 
93
93
 
94
94
  class ViTEncoder(nn.Module):
@@ -305,6 +305,7 @@ class ViTEncoder(nn.Module):
305
305
  linear_module=linear_module,
306
306
  )
307
307
  elif pooling_out_channels == transformer_embedding_size:
308
+ self.intermediate_feedforward_layer = nn.Identity()
308
309
  self.pooling_channels_padding = nn.Identity()
309
310
  elif pooling_out_channels < transformer_embedding_size:
310
311
  self.intermediate_feedforward_layer = nn.Identity()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "broccoli-ml"
3
- version = "0.13.4"
3
+ version = "0.13.6"
4
4
  description = "Some useful Pytorch models, circa 2025"
5
5
  authors = [
6
6
  {name = "Nicholas Bailey"}
File without changes
File without changes