Skip to content
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

rounding_mode does not exist .div of PyTorch 1.3 #250

Open
shahriar0651 opened this issue Jan 14, 2025 · 0 comments
Open

rounding_mode does not exist .div of PyTorch 1.3 #250

shahriar0651 opened this issue Jan 14, 2025 · 0 comments

Comments

@shahriar0651
Copy link

Tested with PyTorch 1.3, CUDA 10.0, and Python 3.3 with Conda.

class MaxPooling(Module):
.....
    def forward(self, input):
        output = SparseConvNetTensor()
        output.metadata = input.metadata
        output.spatial_size = (
            input.spatial_size - self.pool_size).div(self.pool_stride, rounding_mode='trunc') + 1
        assert ((output.spatial_size - 1) * self.pool_stride +
                self.pool_size == input.spatial_size).all()

But rounding_mode does not exist in PyTorch 1.3. Could you please update the following package requirements?

conda install pytorch torchvision cudatoolkit=10.0 -c pytorch # See https://pytorch.org/get-started/locally/
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

No branches or pull requests

1 participant