From 06afbaa421534d0861cbe715ea9c3c27c37e13cc Mon Sep 17 00:00:00 2001 From: Ole-Christoffer Granmo Date: Fri, 11 Oct 2024 10:47:58 +0200 Subject: [PATCH] Update --- tmu/lib/src/ClauseBank.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tmu/lib/src/ClauseBank.c b/tmu/lib/src/ClauseBank.c index eb719938..dca88c21 100644 --- a/tmu/lib/src/ClauseBank.c +++ b/tmu/lib/src/ClauseBank.c @@ -1605,11 +1605,9 @@ void cb_calculate_spatio_temporal_features( } printf("\n"); - unsigned int patch_chunk = patch / 32; - unsigned int patch_pos = patch % 32; - if (((clause_node_output[j*number_of_patch_chunks + patch_chunk] & (1 << patch_pos)) > 0) != clause_value_in_patch[patch] ) { - printf("ERROR %d %d %d %d %d %d\n", j, patch, patch_chunk, patch_pos, (clause_node_output[j*number_of_patch_chunks + patch_chunk] & (1 << patch_pos)) > 0, clause_value_in_patch[patch]); + if (((clause_node_output[0] & 1) > 0) != clause_value) { + printf("ERROR %d %d\n", (clause_node_output[0] & 1) > 0, clause_value); } else { printf("CORRECT\n"); }