broccoli-ml 0.5.5__tar.gz → 0.6.0__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.5.5 → broccoli_ml-0.6.0}/PKG-INFO +1 -1
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/vit.py +7 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/pyproject.toml +1 -1
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/LICENSE +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/README.md +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/__init__.py +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/activation.py +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/assets/2025_resnet_imagenet_1k_pretrained_state_dict.pkl +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/assets/cifar100_eigenvectors_size_2.pt +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/assets/cifar100_eigenvectors_size_3.pt +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/cnn.py +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/eigenpatches.py +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/linear.py +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/rope.py +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/tensor.py +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/transformer.py +0 -0
- {broccoli_ml-0.5.5 → broccoli_ml-0.6.0}/broccoli/utils.py +0 -0
@@ -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
|
|
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
|