You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9a56129
Browse filesBrowse the repository at this point in the historyBrowse files
Give backends the method's metadata at init (#24220) (#24220)
Summary:
`BackendInitContext::method_meta()` gives a delegate's `init` the
`MethodMeta` of the method being loaded, or null when the context is
built without one. `Method::init` passes its own; the view is borrowed
and valid only during `init`. With it, a delegate can check the method
around it, such as its delegates, its instruction count and whether its
inputs and outputs are memory planned, before it accepts options that
depend on them.
The Core ML delegate uses this later in the stack to accept IOSurface
load options only for a method that is just its own call on unplanned
inputs and outputs.
The context carries the metadata instead of a
`has_verified_single_delegate_io()` flag computed by the runtime, so
each delegate applies its own rule.
Differential Revision: D127716377
0 commit comments