SIGN IN SIGN UP

use partitioner instance directly in to_backend (#2513)

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

to_backend either takes partitioner or a dict of partitioner `key: method_name, value: partitioner`. We shouldn't do key as the backend name and value as the partitioner.

Reviewed By: mergennachin

Differential Revision: D55078939

fbshipit-source-id: 7c2b8587095d2227d17a198c3b4e975910f4df00
C
Chen Lai committed
c89a75813568ed7b8bc4d2dbd3da9ac3e6bcbd12
Parent: 8716780
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 3/22/2024, 1:50:24 AM