Skip to content

[DataPipe] Add handler argument to iopath DataPipes#1154

Closed
NivekT wants to merge 1 commit intogh/NivekT/124/basefrom
gh/NivekT/124/head
Closed

[DataPipe] Add handler argument to iopath DataPipes#1154
NivekT wants to merge 1 commit intogh/NivekT/124/basefrom
gh/NivekT/124/head

Conversation

@NivekT
Copy link
Contributor

@NivekT NivekT commented May 8, 2023

Stack from ghstack:

A lot of use cases currently looks like:

dp = IoPathFileOpener(dp, mode="rb")
dp.register_handler(handler)

This allows users to register_handler within __init__:

dp = IoPathFileOpener(dp, mode="rb", handler=handler)

Differential Revision: D45667135

NivekT added a commit that referenced this pull request May 8, 2023
ghstack-source-id: bfe71c7
Pull Request resolved: #1154
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 8, 2023
@NivekT NivekT changed the title [DataPipe] Add argument to iopath DataPipes [DataPipe] Add handler argument to iopath DataPipes May 8, 2023
@NivekT NivekT requested a review from ejguan May 8, 2023 19:02
@NivekT NivekT added the topic: improvements topic category label May 8, 2023
Copy link
Contributor

@ejguan ejguan left a comment

Choose a reason for hiding this comment

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

LGTM.

@NivekT
Copy link
Contributor Author

NivekT commented May 8, 2023

@NivekT has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@NivekT merged this pull request in fec1e58.

@facebook-github-bot facebook-github-bot deleted the gh/NivekT/124/head branch May 13, 2023 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged topic: improvements topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants