rxnn 0.2.11__py3-none-any.whl → 0.2.12__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.
rxnn/memory/attention.py CHANGED
@@ -36,8 +36,7 @@ class StmMemoryAttention(nn.Module):
36
36
  normalized_layer_stm = self.memory_norm_layers[i](layer_stm)
37
37
  new_layer_stm = self.attention_layers[i](normalized_layer_stm, encoded_layer_data, encoded_layer_data, mask=mask)
38
38
  # self.stm.update_layer(i, new_layer_stm + layer_stm)
39
- final_layer_stm = new_layer_stm + layer_stm # residual
40
- self.stm.update_layer(i, final_layer_stm)
41
- # self.stm.update_all(new_stm)
39
+ new_stm[i] = new_layer_stm + layer_stm # residual
40
+ self.stm.update_all(new_stm)
42
41
  return self.stm.memory
43
42
 
rxnn/memory/stm.py CHANGED
@@ -42,7 +42,8 @@ class ShortTermMemory(nn.Module):
42
42
  self.memory[layer] = new_stm
43
43
 
44
44
  def update_all(self, new_stm: torch.Tensor):
45
- self.memory.copy_(new_stm)
45
+ self.memory = new_stm
46
+ # self.memory.copy_(new_stm)
46
47
 
47
48
  def make_trainable(self):
48
49
  if not self.is_trainable:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rxnn
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: RxNN: Reactive Neural Networks Platform
5
5
  License: Apache-2.0
6
6
  Keywords: deep-learning,ai,machine-learning
@@ -5,9 +5,9 @@ rxnn/experimental/attention.py,sha256=46qwZLJuZMpIBrZ-r9DaQEPPmmZkO464C3Tkm_Mq-c
5
5
  rxnn/experimental/models.py,sha256=foBo0n0ufvBnfIdJomiEg3CuSOiWSt-q5ako7vzYxx4,4888
6
6
  rxnn/experimental/moe.py,sha256=jHZ1QhpWiVQOswVpFmuH7b2IUOPf0Uuf-I2Ddwsd7Us,6140
7
7
  rxnn/memory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- rxnn/memory/attention.py,sha256=eCsTjJEQVurBjsIlJyk1cDvOGU2YMbYMKiBVOb3mfKg,1874
8
+ rxnn/memory/attention.py,sha256=p-r8DK3iVhNn-JAESVzIXDCG8gk1R_-x5xHclZ5jgb0,1813
9
9
  rxnn/memory/norm.py,sha256=Ofl8Q5NYEF9GQeO0bhM43tkTW91J0y6TSvTAOYMgloM,6278
10
- rxnn/memory/stm.py,sha256=DPkK1q1SLRw3HWM0dcvkn4XvIrfwUK47h4KmvFVWljc,3847
10
+ rxnn/memory/stm.py,sha256=S5CtPI2KXxjs_vvMtb-w57ZPN3TmvVvU3TBHG2au2VE,3879
11
11
  rxnn/rxt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  rxnn/rxt/models.py,sha256=qlYgU002VE21ZOlcxEM9iv9tAvsbe4mngcMI2sw3j9k,12078
13
13
  rxnn/training/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -32,7 +32,7 @@ rxnn/transformers/moe.py,sha256=j6jEx6Ip0zttlUZKKn82azxo95lkLZs-H2GLSMD88hY,5859
32
32
  rxnn/transformers/positional.py,sha256=1PjcJybUzeQlIKJI4tahAGZcYgCRCL0otxs7mpsNuzM,4410
33
33
  rxnn/transformers/sampler.py,sha256=t6iiQTdLQ0TakUWnnhKkb5DKF2F_9-thXHBydDF3fxg,17389
34
34
  rxnn/utils.py,sha256=ihb6OTyDtPiocB_lOvnq7eOkjjpCkgs8wxvXUBNQ7mM,996
35
- rxnn-0.2.11.dist-info/LICENSE,sha256=C8coDFIUYuOcke4JLPwTqahQUCyXyGq6WOaigOkx8tY,11275
36
- rxnn-0.2.11.dist-info/METADATA,sha256=Latj91qV2ruPOzt-bdaqfGfu0WF42e5qPz6MCBVVtTo,25960
37
- rxnn-0.2.11.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
- rxnn-0.2.11.dist-info/RECORD,,
35
+ rxnn-0.2.12.dist-info/LICENSE,sha256=C8coDFIUYuOcke4JLPwTqahQUCyXyGq6WOaigOkx8tY,11275
36
+ rxnn-0.2.12.dist-info/METADATA,sha256=HvEJSZUelxjiAKWAQ3wwbNtNmMsJjxlstZZModU9UMw,25960
37
+ rxnn-0.2.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
+ rxnn-0.2.12.dist-info/RECORD,,
File without changes
File without changes