Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
olegranmo committed May 9, 2024
1 parent 6eed831 commit 27ff0cc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tmu/lib/src/Tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,6 @@ void tmu_encode(
Xi = &X[input_pos];
encoded_Xi = &encoded_X[encoded_pos];

// Encode class into feature vector (all false)
for (int clause_feature = 0; clause_feature < clause_features; ++clause_feature) {

int chunk_nr = (clause_feature + number_of_features) / 32;
int chunk_pos = (clause_feature + number_of_features) % 32;
encoded_Xi[chunk_nr] |= (1U << chunk_pos);
}

// Encode y coordinate of patch into feature vector
for (int y_threshold = 0; y_threshold < dim_y - patch_dim_y; ++y_threshold) {
int patch_pos = clause_features + y_threshold;
Expand Down

0 comments on commit 27ff0cc

Please sign in to comment.