Skip to content

Commit 972a671

Browse files
authored
Update README.md
1 parent 1a3a89e commit 972a671

File tree

1 file changed

+11
-4
lines changed
  • Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/Batching

1 file changed

+11
-4
lines changed

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/Batching/README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,24 @@
33

44
Use this sample to compare inference runtime performace with and without batched inputs. 50 images will be passed through SqueezeNet for classification. Set a batch size and click Start Inference to compare.
55

6-
## Feedback
7-
Please file an issue [here](https://github.com/microsoft/Windows-Machine-Learning/issues/new) if you encounter any issues with the WinML Samples Gallery or wish to request a new sample.
8-
96
<img src="docs/BatchingScreenshot.png" width="650"/>
107

118
- [Getting Started](#getting-started)
9+
- [BatchSizeOverride](#batchsizeoverride)
1210
- [Feedback]($feedback)
13-
- [External Links](#links)
11+
- [External Links](#external-links)
1412

1513
## Getting Started
1614
- Check out the [source](https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/Batching/Batching.xaml.cs).
15+
- Learn how to [add the BatchSizeOverride property](https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/Batching/Batching.xaml.cs#L125) to your session.
16+
- Learn how to [evaluate batched input](https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/Batching/Batching.xaml.cs#L186).
17+
18+
## BatchSizeOverride
19+
- Learn more about the BatchSizeOverride property from the [docs](https://docs.microsoft.com/en-us/uwp/api/windows.ai.machinelearning.learningmodelsessionoptions.batchsizeoverride?view=winrt-22000).
20+
- **Note**: To use batched inputs, the model must have a value of -1 or a variable name in the input batch dimension. Additionally, the DATA_BATCH Denotation must be added on the batch dimension. To edit your model you can use tools like [WinML Dashboard](https://github.com/Microsoft/Windows-Machine-Learning/tree/master/Tools/WinMLDashboard).
21+
22+
## Feedback
23+
Please file an issue [here](https://github.com/microsoft/Windows-Machine-Learning/issues/new) if you encounter any issues with the WinML Samples Gallery or wish to request a new sample.
1724

1825
## External Links
1926

0 commit comments

Comments
 (0)