Skip to content

update codegen to make it work with mlnet 1.5 #5173

Merged
LittleLittleCloud merged 20 commits intodotnet:masterfrom
LittleLittleCloud:u/xiaoyun/updateCodeGenTo1.5
Jul 20, 2020
Merged

update codegen to make it work with mlnet 1.5 #5173
LittleLittleCloud merged 20 commits intodotnet:masterfrom
LittleLittleCloud:u/xiaoyun/updateCodeGenTo1.5

Conversation

@LittleLittleCloud
Copy link
Copy Markdown
Member

@LittleLittleCloud LittleLittleCloud commented May 28, 2020

@LittleLittleCloud LittleLittleCloud requested review from a team as code owners May 28, 2020 01:59
Comment thread .editorconfig Outdated
<PackageReference Include="Microsoft.ML" Version="StablePackageVersion" />
<PackageReference Include="Microsoft.ML.OnnxTransformer" Version="StablePackageVersion" />
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.2.3" />
<PackageReference Include="Microsoft.ML.CodeGenerator.Helper" Version="1.2.3" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is Microsoft.ML.CodeGenerator.Helper? Is the code for it included in this PR?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a helper package which includes customer transformer,
See this issue for detail into
dotnet/machinelearning-modelbuilder#397

<PackageReference Include="Microsoft.ML" Version="StablePackageVersion" />
<PackageReference Include="Microsoft.ML.OnnxTransformer" Version="StablePackageVersion" />
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.2.3" />
<PackageReference Include="Microsoft.ML.CodeGenerator.Helper" Version="1.2.3" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a pinned version for Microsoft.ML.OnnxRuntime & Microsoft.ML.CodeGenerator.Helper?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because Microsoft.ML.OnnxTransformer 1.5.0 requires users to indicate the specific onnxruntime package (CPU or GPU)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not any more

Resolved

Comment thread test/Microsoft.ML.CodeGenerator.Tests/ApprovalTests/TemplateTest.cs
@LittleLittleCloud LittleLittleCloud marked this pull request as draft May 28, 2020 17:33
@LittleLittleCloud LittleLittleCloud marked this pull request as ready for review June 2, 2020 22:28
@LittleLittleCloud LittleLittleCloud force-pushed the u/xiaoyun/updateCodeGenTo1.5 branch from 5bbb389 to 787dec3 Compare June 3, 2020 20:06
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2020

Codecov Report

Merging #5173 into master will increase coverage by 0.25%.
The diff coverage is 97.29%.

@@            Coverage Diff             @@
##           master    #5173      +/-   ##
==========================================
+ Coverage   73.46%   73.72%   +0.25%     
==========================================
  Files        1014     1011       -3     
  Lines      188682   188077     -605     
  Branches    20330    20278      -52     
==========================================
+ Hits       138621   138652      +31     
+ Misses      44540    43926     -614     
+ Partials     5521     5499      -22     
Flag Coverage Δ
#Debug 73.72% <97.29%> (+0.25%) ⬆️
#production 69.57% <96.10%> (+0.31%) ⬆️
#test 87.43% <100.00%> (+<0.01%) ⬆️
Impacted Files Coverage Δ
.../CodeGenerator/CSharp/TransformGeneratorFactory.cs 91.66% <ø> (-0.65%) ⬇️
...erator/CodeGenerator/CSharp/TransformGenerators.cs 91.10% <33.33%> (-0.37%) ⬇️
...ML.CodeGenerator/Templates/Console/ModelBuilder.cs 74.60% <85.71%> (+0.43%) ⬆️
...odeGenerator/AzureAttachConsoleAppCodeGenerator.cs 100.00% <100.00%> (ø)
...zureCodeGenerator/AzureAttachModelCodeGenerator.cs 99.01% <100.00%> (-0.99%) ⬇️
...odeGenerator/CodeGenerator/CSharp/CodeGenerator.cs 66.55% <100.00%> (+0.21%) ⬆️
...ator/CodeGenerator/CSharp/CodeGeneratorSettings.cs 95.45% <100.00%> (+5.98%) ⬆️
...rator/Templates/Azure/Console/AzureModelBuilder.cs 55.37% <100.00%> (-1.15%) ⬇️
...emplates/Azure/Model/AzureImageModelOutputClass.cs 48.18% <100.00%> (ø)
...ML.CodeGenerator/Templates/Console/ConsumeModel.cs 50.49% <100.00%> (-0.97%) ⬇️
... and 18 more

@LittleLittleCloud LittleLittleCloud merged commit cb5769d into dotnet:master Jul 20, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants