broccoli-ml 0.5.5__py3-none-any.whl → 0.6.0__py3-none-any.whl

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.
broccoli/vit.py CHANGED
@@ -269,6 +269,13 @@ class ViTEncoder(nn.Module):
269
269
  Rearrange( # for transformer
270
270
  f"N C {spatial_dim_names} -> N ({spatial_dim_names}) C"
271
271
  ),
272
+ (
273
+ PadTensor(
274
+ (0, transformer_embedding_size - pooling_out_channels)
275
+ )
276
+ if not intermediate_feedforward_layer
277
+ else nn.Identity()
278
+ ),
272
279
  ]
273
280
  )
274
281
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: broccoli-ml
3
- Version: 0.5.5
3
+ Version: 0.6.0
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -10,8 +10,8 @@ broccoli/rope.py,sha256=hw7kBPNR9GQXj4GxyIAffsGKPfcTPOFh8Bc7oEHtaZY,12108
10
10
  broccoli/tensor.py,sha256=E2JK5mQwJf75e23-JGcDoT7QxQf89DJReUo2et1LhRY,1716
11
11
  broccoli/transformer.py,sha256=SwvutiYOiPlqLzbO_twye7Hna5DsJukVOzzAx9CTCyU,16417
12
12
  broccoli/utils.py,sha256=htq_hOsdhUhL0nJi9WkKiEYOjEoWqFpK5X49PtgTf-0,299
13
- broccoli/vit.py,sha256=WBYLPowGrt4MUbFGmJiP35F-3wG7CPhDM4lOPgVJy3Q,15365
14
- broccoli_ml-0.5.5.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
15
- broccoli_ml-0.5.5.dist-info/METADATA,sha256=J6BFEZbQdWYaE9raTxH0x05HlTSOnbx365CfGVs4WhU,1256
16
- broccoli_ml-0.5.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
- broccoli_ml-0.5.5.dist-info/RECORD,,
13
+ broccoli/vit.py,sha256=_oL0NRUJakyIke2g8WK5eWaiEh06gAhI67l6Wl7k1oM,15659
14
+ broccoli_ml-0.6.0.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
15
+ broccoli_ml-0.6.0.dist-info/METADATA,sha256=b0RyaSofwkIM2H86MeOop_-VVJMkEBuJdTxFqCNAahY,1256
16
+ broccoli_ml-0.6.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
+ broccoli_ml-0.6.0.dist-info/RECORD,,