Skip to content

Commit

Permalink
image: print aspect ratio id
Browse files Browse the repository at this point in the history
  • Loading branch information
danbev committed Dec 28, 2024
1 parent 1c3350f commit 460abeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fundamentals/image-processing/src/mllama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,9 @@ int main() {
printf("%f\n", ((float*)out->data)[i]);
}

int aspect_ratio_id = out->aspect_ratio;
printf("Aspect ratio ID: %d\n", aspect_ratio_id);

// out->data is float* in CHW for each tile stacked vertically
// out->width = 224
// out->height = 224 * (# of tiles)
Expand Down

0 comments on commit 460abeb

Please sign in to comment.