Segregate IExecutionProvider data-layout preference into a mix-in interface
Add IDataLayoutCapability grouping the coupled GetPreferredLayout() and ShouldConvertDataLayoutForOp() virtuals, with a GetDataLayoutCapability() query hook on IExecutionProvider (defaults to nullptr). Additive and non-breaking; only NHWC-preferring EPs implement it. Includes fake-EP unit tests.
Author
Gopalakrishnan Nallasamy
Committer
Gopalakrishnan Nallasamy