Skip to content

Commit d81698b

Browse files
authored
Merge pull request #778 from dotnet/master
Update live from current master
2 parents 3c28600 + 99e2580 commit d81698b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

machine-learning/tutorials/TransferLearningTF/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static void Main(string[] args)
3939

4040
// <SnippetCallReuseAndTuneInceptionModel>
4141
ReuseAndTuneInceptionModel(mlContext, _trainTagsTsv, _trainImagesFolder, _inceptionPb, _outputImageClassifierZip);
42-
// </CallSnippetReuseAndTuneInceptionModel>
42+
// </SnippetCallReuseAndTuneInceptionModel>
4343

4444
// <SnippetCallClassifyImages>
4545
ClassifyImages(mlContext, _predictImageListTsv, _predictImagesFolder, _outputImageClassifierZip);
@@ -186,7 +186,7 @@ public static void ClassifySingleImage(MLContext mlContext, string imagePath, st
186186
{
187187
ImagePath = imagePath
188188
};
189-
// </SnippetReadFromTSV2>
189+
// </SnippetLoadImageData>
190190

191191
// <SnippetPredictSingle>
192192
// Make prediction function (input = ImageNetData, output = ImageNetPrediction)

snippets/cpp/VS_Snippets_CLR/EventLogEntry_Source/CPP/eventlogentry_source.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int main()
4848
int myCount = myLogEntryCollection->Count;
4949

5050
// Iterate through all 'EventLogEntry' instances in 'EventLog'.
51-
for ( int i = myCount - 1; i > 0; i-- )
51+
for ( int i = myCount - 1; i > -1; i-- )
5252
{
5353
EventLogEntry^ myLogEntry = myLogEntryCollection[ i ];
5454

snippets/csharp/VS_Snippets_CLR/EventLogEntry_Source/CS/eventlogentry_source.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void Main()
3838
EventLogEntryCollection myLogEntryCollection=myEventLog.Entries;
3939
int myCount =myLogEntryCollection.Count;
4040
// Iterate through all 'EventLogEntry' instances in 'EventLog'.
41-
for(int i=myCount-1;i>0;i--)
41+
for(int i=myCount-1;i>-1;i--)
4242
{
4343
EventLogEntry myLogEntry = myLogEntryCollection[i];
4444
// Select the entry having desired EventType.
@@ -55,4 +55,4 @@ public static void Main()
5555
}
5656
}
5757
// </Snippet2>
58-
// </Snippet1>
58+
// </Snippet1>

0 commit comments

Comments
 (0)