Skip to content

Conversation

@noahstier
Copy link
Contributor

According to the type annotation, tensor_stride can be a Tensor: https://github.com/mit-han-lab/torchsparse/blob/master/torchsparse/utils/kernel.py#L21

But make_tuple fails silently (returns None) with Tensor input. This adds an elif branch for make_tuple from Tensor.

Not extensively tested -- it is possible that some other code will break if it relies on the None output here.

Copy link
Contributor

@zhijian-liu zhijian-liu left a comment

Choose a reason for hiding this comment

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

Thanks! This has actually been fixed in #81. However, as that PR still requires some time before merging, we can first apply this change.

@zhijian-liu zhijian-liu merged commit ab1faa0 into mit-han-lab:master Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants