Skip to content

Remove unnecessary initialisation #5507

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 2 commits into from
Mar 2, 2022

Conversation

prabhat00155
Copy link
Contributor

This initialisation is unnecessary as frame tensor would always get overwritten in the do-while loop. In case there are no decoded frames, fetch_frame() returns a zero tensor.
Discussion: #5019 (comment)

@facebook-github-bot
Copy link

facebook-github-bot commented Mar 1, 2022

💊 CI failures summary and remediations

As of commit b2fa4ed (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@prabhat00155 prabhat00155 merged commit a2b7075 into pytorch:main Mar 2, 2022
@prabhat00155 prabhat00155 deleted the prabhat00155/refactor2 branch March 2, 2022 10:55
facebook-github-bot pushed a commit that referenced this pull request Mar 5, 2022
Reviewed By: datumbox

Differential Revision: D34579506

fbshipit-source-id: 915b9dfceacb922d27f323ec9af6c53af12e9ffa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants