linearize_access_indexes only needs dim of broadcast_to (#270)
Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/270 The utility function `linearize_access_indexes` currently takes the `broadcast_to` tensor as the second argument. However, only the dimension of the tensor is needed. Updating the function, to take only the dimension, so that it can be used in scenarios where a broadcast_to tensor is not available, and only a broadcast shape/ndim is known. Reviewed By: kirklandsign Differential Revision: D49159987 fbshipit-source-id: c6532b2a48b823234accdc3e69edc0e21147658a
M
Manuel Candales committed
da70c5db9001486ec95b3eba8bc8fe0472da0a3e
Parent: e9c5851
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 9/12/2023, 8:29:06 AM