Spaces:
Running
Running
Update modules/memory_updater.py
Browse files
modules/memory_updater.py
CHANGED
@@ -23,7 +23,8 @@ class SequenceMemoryUpdater(MemoryUpdater):
|
|
23 |
"update memory to time in the past"
|
24 |
|
25 |
memory = self.memory.get_memory(unique_node_ids)
|
26 |
-
|
|
|
27 |
|
28 |
updated_memory = self.memory_updater(unique_messages, memory)
|
29 |
|
|
|
23 |
"update memory to time in the past"
|
24 |
|
25 |
memory = self.memory.get_memory(unique_node_ids)
|
26 |
+
with torch.no_grad():
|
27 |
+
self.memory.last_update[unique_node_ids] = timestamps
|
28 |
|
29 |
updated_memory = self.memory_updater(unique_messages, memory)
|
30 |
|