Skip to content

Commit

Permalink
llvm, MemoryFunctions: Drop 'duplicate_keys' and 'previous_value' fro…
Browse files Browse the repository at this point in the history
…m compiled structures

Currently unused in compiled code.

Signed-off-by: Jan Vesely <[email protected]>
  • Loading branch information
jvesely committed Oct 27, 2023
1 parent 6b431f8 commit 66edfff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion psyneulink/core/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,10 @@ def _get_compilation_state(self):
if getattr(self.parameters, 'has_recurrent_input_port', False):
blacklist.update(['combination_function'])

# Drop previous_value from MemoryFunctions
if hasattr(self.parameters, 'duplicate_keys'):
blacklist.add("previous_value")

def _is_compilation_state(p):
# FIXME: This should use defaults instead of 'p.get'
return p.name not in blacklist and \
Expand Down Expand Up @@ -1400,7 +1404,7 @@ def _get_compilation_params(self):
"random_variables", "smoothing_factor", "per_item",
"key_size", "val_size", "max_entries", "random_draw",
"randomization_dimension", "save_values", "save_samples",
"max_iterations",
"max_iterations", "duplicate_keys",
# not used in compiled learning
"learning_results", "learning_signal", "learning_signals",
"error_matrix", "error_signal", "activation_input",
Expand Down

0 comments on commit 66edfff

Please sign in to comment.