Skip to content

Conversation

vfdev-5
Copy link
Collaborator

@vfdev-5 vfdev-5 commented Nov 10, 2021

Description:

  • Applied contiguous on decoded output tensor in decode_jpeg and decode_png ops
  • Updated tests and docs

Related to #4880

Performance improvement on following transforms, see #4880 (comment)

Description:
- Applied `contiguous` on decoded output tensor in decode_jpeg and decode_png ops
- Updated tests and docs

Related to pytorch#4880
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Nov 10, 2021

💊 CI failures summary and remediations

As of commit 0ec7ce2 (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.

@datumbox datumbox added module: io Perf For performance improvements labels Nov 10, 2021
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 @vfdev-5. Nice performance boost.

@datumbox datumbox merged commit 85b7858 into pytorch:main Nov 10, 2021
@github-actions
Copy link

Hey @datumbox!

You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

@datumbox
Copy link
Contributor

@NicolasHug Do you think it's worth adding perf in the list of high-level labels?

@NicolasHug
Copy link
Member

I would just add enhancement + perf

@vfdev-5 vfdev-5 deleted the fix-decode-noncontig branch November 10, 2021 13:24
@fmassa
Copy link
Member

fmassa commented Nov 10, 2021

This was here on purpose for speed improvements on the reading (avoids copy).

I would revert this PR, and work on improving the performance on the transforms instead so that they better handle channel_last format

vfdev-5 added a commit that referenced this pull request Nov 10, 2021
vfdev-5 added a commit that referenced this pull request Nov 10, 2021
@datumbox datumbox added the revert(ed) For reverted PRs, and PRs that revert other PRs label Nov 10, 2021
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
Description:
- Applied `contiguous` on decoded output tensor in decode_jpeg and decode_png ops
- Updated tests and docs

Related to pytorch#4880
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
facebook-github-bot pushed a commit that referenced this pull request Nov 17, 2021
Summary:
Description:
- Applied `contiguous` on decoded output tensor in decode_jpeg and decode_png ops
- Updated tests and docs

Related to #4880

Reviewed By: datumbox

Differential Revision: D32470473

fbshipit-source-id: 83ba2e1fccbfb414c66c1c6da7e516990aa7225f
facebook-github-bot pushed a commit that referenced this pull request Nov 17, 2021
Summary: This reverts commit 85b7858.

Reviewed By: datumbox

Differential Revision: D32470470

fbshipit-source-id: 1d9f5ec918ac8b58f9f360a147d0c76298058ba0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/default cla signed enhancement module: io Perf For performance improvements revert(ed) For reverted PRs, and PRs that revert other PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants