Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
olegranmo committed Oct 11, 2024
1 parent a90f371 commit 06afbaa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tmu/lib/src/ClauseBank.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 06afbaa

Please sign in to comment.