broccoli-ml 0.13.3__tar.gz → 0.13.5__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.
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/PKG-INFO +1 -1
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/vit.py +2 -1
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/pyproject.toml +1 -1
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/LICENSE +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/README.md +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/__init__.py +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/activation.py +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/assets/2025_resnet_imagenet_1k_pretrained_state_dict.pkl +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/assets/cifar100_eigenvectors_size_2.pt +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/assets/cifar100_eigenvectors_size_3.pt +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/cnn.py +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/eigenpatches.py +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/linear.py +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/rope.py +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/tensor.py +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/transformer.py +0 -0
- {broccoli_ml-0.13.3 → broccoli_ml-0.13.5}/broccoli/utils.py +0 -0
@@ -305,7 +305,8 @@ class ViTEncoder(nn.Module):
|
|
305
305
|
linear_module=linear_module,
|
306
306
|
)
|
307
307
|
elif pooling_out_channels == transformer_embedding_size:
|
308
|
-
|
308
|
+
self.intermediate_feedforward_layer = nn.Identity()
|
309
|
+
self.pooling_channels_padding = nn.Identity()
|
309
310
|
elif pooling_out_channels < transformer_embedding_size:
|
310
311
|
self.intermediate_feedforward_layer = nn.Identity()
|
311
312
|
self.pooling_channels_padding = PadTensor(
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|