broccoli-ml 0.20.0__tar.gz → 0.21.1__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.20.0 → broccoli_ml-0.21.1}/PKG-INFO +1 -1
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/transformer.py +10 -2
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/pyproject.toml +1 -1
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/LICENSE +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/README.md +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/__init__.py +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/activation.py +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/assets/2025_resnet_imagenet_1k_pretrained_state_dict.pkl +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/assets/cifar100_eigenvectors_size_2.pt +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/assets/cifar100_eigenvectors_size_3.pt +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/cnn.py +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/eigenpatches.py +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/linear.py +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/rope.py +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/tensor.py +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/utils.py +0 -0
- {broccoli_ml-0.20.0 → broccoli_ml-0.21.1}/broccoli/vit.py +0 -0
@@ -260,10 +260,18 @@ class FeedforwardBlock(nn.Module):
|
|
260
260
|
|
261
261
|
self.process = nn.Sequential(
|
262
262
|
*[
|
263
|
-
|
263
|
+
(
|
264
|
+
nn.LayerNorm(input_features)
|
265
|
+
if not regularise_values
|
266
|
+
else nn.Identity()
|
267
|
+
),
|
264
268
|
linear_module(input_features, self.max_features),
|
265
269
|
self.activation,
|
266
|
-
|
270
|
+
(
|
271
|
+
nn.LayerNorm(input_features)
|
272
|
+
if not regularise_values
|
273
|
+
else nn.Identity()
|
274
|
+
),
|
267
275
|
self.memory_type(ratio * output_features, output_features),
|
268
276
|
self.dropout,
|
269
277
|
]
|
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
|