Skip to content

Add two-variable scenario in Tensor shape inference for TensorflowTransform #5257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 2, 2020
Merged

Add two-variable scenario in Tensor shape inference for TensorflowTransform #5257

merged 12 commits into from
Jul 2, 2020

Conversation

wangyems
Copy link
Contributor

@wangyems wangyems commented Jun 25, 2020

fix 4364

There are a couple of image related scenarios that tensor shape inferencing should handle (tensor usually has shape [W,H,C] or [N,W,H,C] and usually W = H), the first three are covered by current implementation. This PR added the fourth one.
1, [?, ?, C]
2, [?, W, H, C]
3, [N, ?, ?, C]
4, [?, ?, ?, C] (added in this PR)

There was another PR that attempted to resolve this in the past and it considered scenarios like [?, W, ?, C] or [?, ?, H, C] but I am not sure(and never seen) these could be any deep learning scenarios. We can discuss this since I could be wrong and I will add those scenarios if necessary.

@codecov
Copy link

codecov bot commented Jun 27, 2020

Codecov Report

Merging #5257 into master will increase coverage by 0.25%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5257      +/-   ##
==========================================
+ Coverage   73.49%   73.75%   +0.25%     
==========================================
  Files        1014     1022       +8     
  Lines      188680   190229    +1549     
  Branches    20330    20464     +134     
==========================================
+ Hits       138677   140303    +1626     
+ Misses      44493    44413      -80     
- Partials     5510     5513       +3     
Flag Coverage Δ
#Debug 73.75% <100.00%> (+0.25%) ⬆️
#production 69.52% <100.00%> (+0.21%) ⬆️
#test 87.64% <100.00%> (+0.20%) ⬆️
Impacted Files Coverage Δ
src/Microsoft.ML.TensorFlow/TensorflowTransform.cs 73.86% <100.00%> (+0.31%) ⬆️
...cenariosWithDirectInstantiation/TensorflowTests.cs 91.62% <100.00%> (+0.14%) ⬆️
src/Microsoft.ML.FastTree/RegressionTree.cs 75.51% <0.00%> (-8.17%) ⬇️
src/Microsoft.ML.LightGbm/LightGbmTrainerBase.cs 78.92% <0.00%> (-6.07%) ⬇️
src/Microsoft.ML.AutoML/API/AutoCatalog.cs 69.35% <0.00%> (-4.84%) ⬇️
src/Microsoft.ML.TimeSeries/ExtensionsCatalog.cs 90.62% <0.00%> (-3.00%) ⬇️
src/Microsoft.ML.Maml/MAML.cs 23.78% <0.00%> (-2.43%) ⬇️
...osoft.ML.Functional.Tests/IntrospectiveTraining.cs 98.73% <0.00%> (-1.27%) ⬇️
...crosoft.ML.TimeSeries/RootCauseLocalizationType.cs 48.31% <0.00%> (-1.12%) ⬇️
...osoft.ML.Tests/TrainerEstimators/TreeEstimators.cs 97.45% <0.00%> (-0.64%) ⬇️
... and 50 more

@wangyems wangyems changed the title Add two-variable scenario in Tensor shape inference for TensorflowTransform[todo: adding test] Add two-variable scenario in Tensor shape inference for TensorflowTransform Jun 29, 2020
@wangyems wangyems marked this pull request as ready for review June 29, 2020 17:40
@wangyems wangyems requested a review from a team as a code owner June 29, 2020 17:40
@wangyems wangyems marked this pull request as draft July 1, 2020 17:49
@wangyems wangyems marked this pull request as ready for review July 1, 2020 21:08
@wangyems wangyems requested a review from harishsk July 1, 2020 21:20
@wangyems wangyems requested a review from harishsk July 1, 2020 22:51
@wangyems wangyems requested a review from harishsk July 1, 2020 23:03
Copy link
Contributor

@harishsk harishsk left a comment

Choose a reason for hiding this comment

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

:shipit:

@wangyems wangyems merged commit c459af0 into dotnet:master Jul 2, 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.

Unable to find input colum on tensor flow model using C#
3 participants