Skip to content

Commit 4d16f74

Browse files
committed
Use batched SqueezeNet model in batching sample
1 parent 49052f5 commit 4d16f74

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/Batching/Batching.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private void UpdateEvalText(bool isBatchingEval)
106106

107107
private async Task CreateSessions(int batchSizeOverride)
108108
{
109-
var modelPath = "ms-appx:///Models/squeezenet1.1-7.onnx";
109+
var modelPath = "ms-appx:///Models/squeezenet1.1-7-batched.onnx";
110110
nonBatchingSession_ = await CreateLearningModelSession(modelPath);
111111
batchingSession_ = await CreateLearningModelSession(modelPath, batchSizeOverride);
112112
}

Samples/WinMLSamplesGallery/WinMLSamplesGallery/WinMLSamplesGallery.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<None Remove="AllSamplesPage.xaml" />
2626
<None Remove="Controls\PerformanceMonitor.xaml" />
2727
<None Remove="HomePage.xaml" />
28+
<None Remove="Models\squeezenet1.1-7-batched.onnx" />
2829
<None Remove="SamplesGrid.xaml" />
2930
<None Remove="SampleBasePage.xaml" />
3031
<None Remove="Image.xaml" />
@@ -36,6 +37,7 @@
3637
<None Remove="Video.xaml" />
3738
</ItemGroup>
3839
<ItemGroup>
40+
<Content Include="Models\squeezenet1.1-7-batched.onnx" />
3941
<Content Include="SampleMetadata\SampleMetadata.json">
4042
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4143
</Content>
@@ -151,7 +153,6 @@
151153
</ItemGroup>
152154

153155
<ItemGroup>
154-
<Folder Include="Models\" />
155156
<Folder Include="LargeModels\" />
156157
</ItemGroup>
157158

0 commit comments

Comments
 (0)