SIGN IN SIGN UP

Add tensor utility functions (#694)

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

Added `tensor_has_rank_smaller_or_equal_to` and `tensor_dim_has_index` utility functions
ghstack-source-id: 203341578
exported-using-ghexport

Reviewed By: SS-JIA

Differential Revision: D49796023

fbshipit-source-id: dc501efcd39b7ac2ac8e08d52135af12a7828af8
M
Manuel Candales committed
7a838f795a0648f156e9c28fee4cdd696330eef7
Parent: 788d339
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 10/9/2023, 11:58:51 AM