Skip to content
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

Partially infer conv return types #47060

Merged

Conversation

WindQAQ
Copy link
Member

@WindQAQ WindQAQ commented Feb 10, 2021

Fixes #47057.

af9ad9d introduces conv inferReturnTypes, but skips the inference when either input or filter does not have static shape (unranked or not all dimensions are static). However, it introduces the regression when it comes to partially dynamic input. This PR instead tries to infer as many dimensions as possible, which avoids shape information loss when there are only some dynamic dimensions (like batch dim).

af9ad9d introduces conv inferReturnTypes, but skips the inference when either input or filter does not have static shape (unranked or not all dimensions are static).
This PR instead tries to infer as many dimensions as possible, which avoids shape information loss when there are only some dynamic dimensions (like batch dim).
@google-ml-butler google-ml-butler bot added the size:M CL Change Size: Medium label Feb 10, 2021
@google-cla google-cla bot added the cla: yes label Feb 10, 2021
Copy link
Contributor

@abattery abattery left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir Outdated Show resolved Hide resolved
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Feb 10, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 10, 2021
@miaout17
Copy link
Contributor

@smit-hinsu Do you want to take a look since you approved #44022 ?

@gbaned gbaned self-assigned this Feb 11, 2021
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Feb 11, 2021
@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Feb 11, 2021
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Feb 11, 2021
PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Feb 11, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 11, 2021
@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Feb 11, 2021
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Feb 11, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 11, 2021
@gbaned gbaned added the prtype:bugfix PR to fix a bug label Feb 15, 2021
@copybara-service copybara-service bot merged commit e7a5816 into tensorflow:master Feb 16, 2021
PR Queue automation moved this from Approved by Reviewer to Merged Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes prtype:bugfix PR to fix a bug ready to pull PR ready for merge process size:M CL Change Size: Medium
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

Conv2D output shape becomes fully dynamic when only input batch size is dynamic in tf-nightly
5 participants