Skip to content

Commit 7cdb559

Browse files
authored
Merge pull request #440 from microsoft/user/numform/batching-crash
Use batched SqueezeNet model in batching sample
2 parents 49052f5 + 17adc7e commit 7cdb559

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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 & 0 deletions
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>

0 commit comments

Comments
 (0)