Skip to content

DataFrameMakerIterDataPipe now allows dtype_generator to be passed.#537

Closed
VitalyFedyunin wants to merge 5 commits intogh/VitalyFedyunin/5/basefrom
gh/VitalyFedyunin/5/head
Closed

DataFrameMakerIterDataPipe now allows dtype_generator to be passed.#537
VitalyFedyunin wants to merge 5 commits intogh/VitalyFedyunin/5/basefrom
gh/VitalyFedyunin/5/head

Conversation

@VitalyFedyunin
Copy link
Contributor

@VitalyFedyunin VitalyFedyunin commented Jun 22, 2022

Stack from ghstack (oldest at bottom):

This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

Differential Revision: D37522091

This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

[ghstack-poisoned]
VitalyFedyunin pushed a commit that referenced this pull request Jun 22, 2022
This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

ghstack-source-id: fabd3d8
Pull Request resolved: #537
@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 Jun 22, 2022
…e passed."

This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

[ghstack-poisoned]
VitalyFedyunin pushed a commit that referenced this pull request Jun 22, 2022
This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

ghstack-source-id: 0edabd3
Pull Request resolved: #537
@VitalyFedyunin VitalyFedyunin requested a review from NivekT June 22, 2022 21:26
Copy link
Contributor

@NivekT NivekT left a comment

Choose a reason for hiding this comment

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

LGTM! Probably add some basic test if possible.

dtype=None,
dataframe_size: int = 1000, # or Page Size
dtype=None, # Optional[torcharrow.dtypes.DType]
dtype_generator = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Add the new argument to the docstring:
dtype_generator: function with no input argument that generates a torcharrow.dtypes.DType, which overrides dtype if both are given. This is useful for when the desired dtype is not serializable.

…e passed."

This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

[ghstack-poisoned]
VitalyFedyunin added a commit that referenced this pull request Jun 28, 2022
This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

ghstack-source-id: 7b937f1
Pull Request resolved: #537
…e passed."

This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

[ghstack-poisoned]
VitalyFedyunin added a commit that referenced this pull request Jun 29, 2022
This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

ghstack-source-id: a1c0d38
Pull Request resolved: #537
@VitalyFedyunin
Copy link
Contributor Author

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

…e passed."

This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

Differential Revision: [D37522091](https://our.internmc.facebook.com/intern/diff/D37522091)

[ghstack-poisoned]
VitalyFedyunin added a commit that referenced this pull request Jun 29, 2022
This is required for the usecases when dtype itself is not serializable and can't be part of the graph.

ghstack-source-id: 7b7a266
Pull Request resolved: #537
@VitalyFedyunin
Copy link
Contributor Author

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

@facebook-github-bot facebook-github-bot deleted the gh/VitalyFedyunin/5/head branch July 3, 2022 14:17
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants