titans-pytorch 0.1.37__py3-none-any.whl → 0.1.38__py3-none-any.whl

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.
@@ -706,7 +706,12 @@ class NeuralMemory(Module):
706
706
  if curr_seq_len < self.chunk_size:
707
707
  empty_mem = self.init_empty_memory_embed(batch, 1)
708
708
 
709
- return empty_mem, NeuralMemCache(curr_seq_len, cache_store_seq, past_states, updates)
709
+ output = empty_mem, NeuralMemCache(curr_seq_len, cache_store_seq, past_states, updates)
710
+
711
+ if return_values:
712
+ output = (*output, self.zero)
713
+
714
+ return output
710
715
 
711
716
  # store if storage sequence cache hits the chunk size
712
717
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: titans-pytorch
3
- Version: 0.1.37
3
+ Version: 0.1.38
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
@@ -2,8 +2,8 @@ titans_pytorch/__init__.py,sha256=Y3m_ZlpEqYwp-Md1ARhNGJxq8bQp8ty1o039nZOOJo0,27
2
2
  titans_pytorch/associative_scan.py,sha256=Y-iYqmFuG-NoCKu6kgql1mhowXTeJfyawi3eUIXamp0,2650
3
3
  titans_pytorch/mac_transformer.py,sha256=KBwo-Fr_fDzVaAa7xg1ggEpNlE4vRUoGMEjB-I2ZWTU,26463
4
4
  titans_pytorch/memory_models.py,sha256=LI9T36XB6YXIvvGWRw0ZMDlGpRC6KIv03OPzME2VAaU,3772
5
- titans_pytorch/neural_memory.py,sha256=B6nTdsq7Tp6lfmUwQakOtODImwZzMCDkDfIv5CIKlbQ,25453
6
- titans_pytorch-0.1.37.dist-info/METADATA,sha256=BdkDj71kq320M_vbZOGPrRBR91ycgqBJaUNm9m7tA5U,6826
7
- titans_pytorch-0.1.37.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- titans_pytorch-0.1.37.dist-info/licenses/LICENSE,sha256=1yCiA9b5nhslTavxPjsQAO-wpOnwJR9-l8LTVi7GJuk,1066
9
- titans_pytorch-0.1.37.dist-info/RECORD,,
5
+ titans_pytorch/neural_memory.py,sha256=vmKPOAlXBPXBnYPODrg_reWaIcr1xwtfQmuptGS6e5A,25559
6
+ titans_pytorch-0.1.38.dist-info/METADATA,sha256=8ZmlPJotNIMGAqW8nYWJiM06MvCXJ2SKTGVKarWeOAQ,6826
7
+ titans_pytorch-0.1.38.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ titans_pytorch-0.1.38.dist-info/licenses/LICENSE,sha256=1yCiA9b5nhslTavxPjsQAO-wpOnwJR9-l8LTVi7GJuk,1066
9
+ titans_pytorch-0.1.38.dist-info/RECORD,,