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

I think this may be a bug. B.coordinate_map_key isn't equal to AAA.coordinate_map_key #598

Open
dreaming-huang opened this issue Jun 21, 2024 · 0 comments

Comments

@dreaming-huang
Copy link

    A = ME.SparseTensor(                                                                                                                                                                                                                                                              
            features=torch.FloatTensor([                                                                                                                                                                                                                                              
                [1],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                [1]                                                                                                                                                                                                                                                                
            ]),                                                                                                                                                                                                                                                                       
            coordinates=torch.IntTensor([                                                                                                                                                                                                                                             
                [0, 0, 4],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                [0, 4, 0]                                                                                                                                                                                                                                                          
            ]),                                                                                                                                                                                                                                                                       
            device=device,
            tensor_stride=4
            )
    AA = ME.SparseTensor(                                                                                                                                                                                                                                                              
            features=torch.FloatTensor([                                                                                                                                                                                                                                              
                [1],                                                                                                                                                                                                                                                               
                [1],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
                [1]                                                                                                                                                                                                                                                                
            ]),                                                                                                                                                                                                                                                                       
            coordinates=torch.IntTensor([                                                                                                                                                                                                                                             
                [0, 0, 4],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
                [0, 4, 0],                                                                                                                                                                                                                                                         
                [0, 4, 0]                                                                                                                                                                                                                                                          
            ]),                                                                                                                                                                                                                                                                       
            device=device,
            tensor_stride=4,
            coordinate_manager=A.coordinate_manager
            )
    convtr_1 = ME.MinkowskiConvolutionTranspose(in_channels=1,                                                                                                                                                                                                                
                                                        out_channels=1,                                                                                                                                                                                                               
                                                        kernel_size=2,                                                                                                                                                                                                                
                                                        stride=1,                                                                                                                                                                                                                     
                                                        bias=False,                                                                                                                                                                                                                   
                                                        dimension=A.dimension).to(device)   
    print(A.coordinate_map_key) #coordinate map key:[4, 4]
    AAA=A+AA
    print(AAA.coordinate_map_key) #coordinate map key:[4, 4]:merge-ncCHr
    B = convtr_1(AAA)
    print(B.coordinate_map_key)   #coordinate map key:[4, 4]
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