def proc(self, activation): mem = dct.get_memory_objects( self.root_codelet_dir, 'behavioral-input-memories/perceptual-memory', 'inputs') dct.set_memory_objects(self.root_codelet_dir, 'motor-behavioral-memory', 'I', mem['I'], 'outputs')
def proc(self, activation): mem = dct.get_memory_objects(self.root_codelet_dir, 'perceptual-sensory-memory', 'outputs') if mem['I'] is None: mem['I'] = -1 I = int(mem['I']) + 1 dct.set_memory_objects(self.root_codelet_dir, 'perceptual-sensory-memory', 'I', str(I), 'outputs')
def proc(self, activation): mem = dct.get_memory_objects(self.root_codelet_dir, 'motor-input-memories/behavioral-memory', 'inputs') # dct.set_memory_objects(self.root_codelet_dir, 'final-memory', 'I', mem['I'], 'outputs') print(mem['I'])