Skip to content

Conversation

@pmeier
Copy link
Contributor

@pmeier pmeier commented Sep 22, 2022

Addresses 2. from #6622.

Comment on lines +50 to +52
for attribute in feature_type.__annotations__.keys():
if attribute in args_kwargs.kwargs:
del args_kwargs.kwargs[attribute]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This removes metadata like image_size or format from the sample inputs. They are only there in the first place since we are using the sample inputs of the kernels for the dispatcher.

Copy link
Contributor

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @pmeier !

@vfdev-5
Copy link
Contributor

vfdev-5 commented Oct 5, 2022

Merge conflicts have to resolved and then good to go

Conflicts:
	test/prototype_transforms_dispatcher_infos.py
@pmeier pmeier merged commit 4a99bae into pytorch:main Oct 5, 2022
@pmeier pmeier deleted the dispatch-tests branch October 5, 2022 12:07
facebook-github-bot pushed a commit that referenced this pull request Oct 7, 2022
Reviewed By: datumbox

Differential Revision: D40138747

fbshipit-source-id: c524b3296d9cb3aaa667fabf2d0bb21707ba2c24
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