SIGN IN SIGN UP

Truncate long op_types lists and reindex df rows (#2390)

Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/2390

This diffs increases the *readability* of the Inspector print_data_tabular() by doing 2 things:
1. When the op_types list is long, only show the head and tail parts of it;
2. Because we dropped some rows, reindex the dataframe otherwise there're missing numbers in the left most column.

bypass-github-export-checks
bypass-github-pytorch-ci-checks
bypass-github-executorch-ci-checks

Reviewed By: Jack-Khuu

Differential Revision: D54790779

fbshipit-source-id: cb53302bbae1b25e1883bdeca31e5395a2f8b020
O
Olivia Liu committed
cbe8cbd839a6725cd678633a331f3ae943a1f6d2
Parent: 8f830de
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 3/13/2024, 2:26:30 AM