ashu316 commited on
Commit
4e3dad4
·
verified ·
1 Parent(s): d1cb418

Update modules/memory_updater.py

Browse files
Files changed (1) hide show
  1. modules/memory_updater.py +2 -1
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
- self.memory.last_update[unique_node_ids] = timestamps
 
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