broccoli-ml 0.1.39__tar.gz → 0.1.41__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.1.39
3
+ Version: 0.1.41
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -156,9 +156,13 @@ class CCTEncoder(nn.Module):
156
156
  )
157
157
 
158
158
  elif conv_pooling_type == "concat":
159
- self.concatpool_activation = transformer_activation(
160
- **transformer_activation_kwargs
161
- )
159
+
160
+ if transformer_activation_kwargs is not None:
161
+ self.concatpool_activation = transformer_activation(
162
+ **transformer_activation_kwargs
163
+ )
164
+ else:
165
+ self.concatpool_activation = transformer_activation()
162
166
 
163
167
  concatpool_out_channels = conv_pooling_kernel_size**2 * conv_out_channels
164
168
 
@@ -195,7 +199,10 @@ class CCTEncoder(nn.Module):
195
199
  ),
196
200
  ),
197
201
  self.concatpool_activation,
198
- nn.Linear(transformer_embedding_size * transformer_mlp_ratio),
202
+ nn.Linear(
203
+ transformer_embedding_size * transformer_mlp_ratio,
204
+ transformer_embedding_size,
205
+ ),
199
206
  ]
200
207
  )
201
208
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "broccoli-ml"
3
- version = "0.1.39"
3
+ version = "0.1.41"
4
4
  description = "Some useful Pytorch models, circa 2025"
5
5
  authors = [
6
6
  {name = "Nicholas Bailey"}
File without changes
File without changes