onnxruntime/csharp/test
Yi Zhang 0d672e9112
Enable C# test load models with more complex directories. (#13251)
### Description
Currently, C# test only load models with the directory structure as
`{modelroot}->{opsetXX}->{modelname}->{.onnx}`
In this PR, C# test can load models from
`{modelroot}->{model-source}->{opsetXX}->{modelname}->{.onnx}`

### Motivation and Context
There're multiple sources of testing models.
1. model zoo (Not in official image)
2. 1st party models
3.  models with contrib-ops
4.  others.

It'd better to insert a mid-directory for new sources.

**This PR is compatible with current models.**
From
https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=776643&view=logs&j=6df8fe70-7b8f-505a-8ef0-8bf93da2bac7&t=e7d9f128-b630-5ee6-a99e-2fca70d04619&l=79
the test result is same as master build `Passed: 583, Skipped: 14,
Total: 597`

**model zoo models (mounted in ..\models\zoo) could be loaded**
And from this test workflow, it can load both existing models and models
from model zoo.

https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=777018&view=logs&j=6df8fe70-7b8f-505a-8ef0-8bf93da2bac7&t=e7d9f128-b630-5ee6-a99e-2fca70d04619
Skipping failed models will be in other PRs
2022-10-12 13:53:58 +08:00
..
Microsoft.AI.MachineLearning.Tests Add cppwinrt and cswinrt tests in windowsai nuget pipeline (#4381) 2020-07-07 09:36:42 -07:00
Microsoft.AI.MachineLearning.Tests.DotNet5_0 Enable Microsoft.Ai.MachineLearning package to work on .NET5 down to 17763 Windows SDK (#7522) 2021-05-01 00:56:36 -07:00
Microsoft.AI.MachineLearning.Tests.Uwp Fix Microsoft.AI.MachineLearning NuGet App failure with multiple binaries copied to same destination (#10076) 2021-12-21 12:34:03 -08:00
Microsoft.ML.OnnxRuntime.EndToEndTests Update Newtonsoft.Json version to 13.0.1. (#12691) 2022-08-23 18:45:38 -07:00
Microsoft.ML.OnnxRuntime.EndToEndTests.Mobile Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
Microsoft.ML.OnnxRuntime.Tests.Common Remove miscellaneous nuphar configs (#13070) 2022-09-26 13:41:28 -07:00
Microsoft.ML.OnnxRuntime.Tests.Devices Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
Microsoft.ML.OnnxRuntime.Tests.Droid Add csharp docfx (#12596) 2022-08-25 09:51:32 -05:00
Microsoft.ML.OnnxRuntime.Tests.iOS Add .net6 support to the C# nuget package. (#11908) 2022-06-22 08:08:24 +10:00
Microsoft.ML.OnnxRuntime.Tests.NetCoreApp Enable C# test load models with more complex directories. (#13251) 2022-10-12 13:53:58 +08:00