Skip to content

[WIP] Unify checking for Sequence and Number #3318

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

Closed
wants to merge 2 commits into from

Conversation

voldemortX
Copy link
Contributor

@voldemortX voldemortX commented Jan 28, 2021

As mentioned in #3200, I want to unify checking for Sequence instead of int or list and numbers.Number instead of int or float in this separate PR. Only changing the checks and docs should not concern torchscript.
Not sure if this is what you meant back then? @datumbox

@voldemortX
Copy link
Contributor Author

voldemortX commented Jan 28, 2021

As mentioned in #3200, I want to unify checking for Sequence instead of int or list and numbers.Number instead of int or float in this separate PR. Only changing the checks and docs should not concern torchscript.

Belay that, it does seem to have problems.
I'll probably close it later...

@voldemortX voldemortX changed the title Unify checking for Sequence and Number [WIP] Unify checking for Sequence and Number Jan 28, 2021
@voldemortX
Copy link
Contributor Author

I just realized Sequence is not listed as supported in torchscript and there seems to be no recent plan to support it, closing PR.

P.S. Union is coming in 1.8.0 though, maybe some workarounds can be removed after that.

@voldemortX voldemortX closed this Jan 28, 2021
@datumbox
Copy link
Contributor

Yes that's the reason. And +1 on removing the workarounds once Union support becomes available. This is going to make the codebase much cleaner. :)

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