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