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