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

Support big endian for .flo file decoding #4868

Merged
merged 2 commits into from
Nov 5, 2021

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Nov 5, 2021

From https://vision.middlebury.edu/flow/code/flow-code/README.txt,
.flo files contain a magic number which is to 'PIEH' in ascii.

Our previous code was relying on the expectation that this is equivalent to 202021.25 on little endian archs. This PR updates the magic-number checks to also support big-endian archs.

cc @pmeier

@facebook-github-bot
Copy link

facebook-github-bot commented Nov 5, 2021

💊 CI failures summary and remediations

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


  • 1/1 failures introduced in this PR

1 failure not recognized by patterns:

Job Step Action
CircleCI binary_libtorchvision_ops_android Build 🔁 rerun

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
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks!

@fmassa fmassa merged commit 4715e2e into pytorch:main Nov 5, 2021
facebook-github-bot pushed a commit that referenced this pull request Nov 8, 2021
Summary: Co-authored-by: Francisco Massa <fvsmassa@gmail.com>

Reviewed By: kazhang

Differential Revision: D32216691

fbshipit-source-id: 20a63606676b5ca02e16e752908be749fbdd6490
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
Co-authored-by: Francisco Massa <fvsmassa@gmail.com>
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