@@ -150,8 +150,7 @@ def conv3d(inputs, kernel, bias=None, stride=1, dilation=1, transpose=False):
150150 idx_query = sphashquery (hash_query , hash_target )
151151 idx_query = list (convert_neighbor_map_gpu (idx_query ))
152152 idx_query [1 ] = idx_query [1 ].to ('cpu' )
153- sizes = ((idx_query [0 ][:, 0 ].max () + 1 ).item (),
154- (idx_query [0 ][:, 1 ].max () + 1 ).item ())
153+ sizes = (features .shape [0 ], new_coords .shape [0 ])
155154 output_features = sparseconv_op (features , kernel , idx_query [0 ],
156155 idx_query [1 ], sizes , transpose )
157156 if bias is not None :
@@ -180,8 +179,7 @@ def conv3d(inputs, kernel, bias=None, stride=1, dilation=1, transpose=False):
180179 idx_query = sphashquery (hash_query , hash_target )
181180 idx_query = list (convert_neighbor_map_gpu (idx_query ))
182181 idx_query [1 ] = idx_query [1 ].to ('cpu' )
183- sizes = ((idx_query [0 ][:, 0 ].max () + 1 ).item (),
184- (idx_query [0 ][:, 1 ].max () + 1 ).item ())
182+ sizes = (features .shape [0 ], features .shape [0 ])
185183 output_features = sparseconv_op (features , kernel , idx_query [0 ],
186184 idx_query [1 ], sizes , transpose )
187185 if bias is not None :
0 commit comments