titans-pytorch 0.3.22__tar.gz → 0.3.23__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: titans-pytorch
3
- Version: 0.3.22
3
+ Version: 0.3.23
4
4
  Summary: Titans
5
5
  Project-URL: Homepage, https://pypi.org/project/titans-pytorch/
6
6
  Project-URL: Repository, https://github.com/lucidrains/titans-pytorch
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "titans-pytorch"
3
- version = "0.3.22"
3
+ version = "0.3.23"
4
4
  description = "Titans"
5
5
  authors = [
6
6
  { name = "Phil Wang", email = "lucidrains@gmail.com" }
@@ -425,8 +425,8 @@ class NeuralMemory(Module):
425
425
 
426
426
  self.to_learned_momentum_combine = Sequential(
427
427
  nn.Linear(dim, heads * momentum_order),
428
- nn.Softmax(dim = -1),
429
- Rearrange('b n (h o) -> o (b h) n', h = heads)
428
+ Rearrange('b n (h o) -> o (b h) n', h = heads),
429
+ nn.Softmax(dim = 0),
430
430
  )
431
431
 
432
432
  self.learned_combine_include_zeroth = learned_combine_include_zeroth
File without changes