@@ -323,14 +323,13 @@ def splat_points_to_volumes(
323
323
rXYZ = points_3d_indices - XYZ .type_as (points_3d ) # remainder of floor
324
324
325
325
# split into separate coordinate vectors
326
- # pyre-fixme[16]: `LongTensor` has no attribute `split`.
327
326
X , Y , Z = XYZ .split (1 , dim = 2 )
328
327
# rX = remainder after floor = 1-"the weight of each vote into
329
328
# the X coordinate of the 8-neighborhood"
330
- # pyre-fixme[16]: `Tensor` has no attribute `split`.
331
329
rX , rY , rZ = rXYZ .split (1 , dim = 2 )
332
330
333
331
# get random indices for the purpose of adding out-of-bounds values
332
+ # pyre-fixme[16]: `Tensor` has no attribute `new_zeros`.
334
333
rand_idx = X .new_zeros (X .shape ).random_ (0 , n_voxels )
335
334
336
335
# iterate over the x, y, z indices of the 8-neighborhood (xdiff, ydiff, zdiff)
@@ -348,7 +347,6 @@ def splat_points_to_volumes(
348
347
w = wX * wY * wZ
349
348
350
349
# valid - binary indicators of votes that fall into the volume
351
- # pyre-fixme[16]: `int` has no attribute `long`.
352
350
valid = (
353
351
(0 <= X_ )
354
352
* (X_ < grid_sizes_xyz [:, None , 0 :1 ])
@@ -367,8 +365,6 @@ def splat_points_to_volumes(
367
365
idx_valid = idx * valid + rand_idx * (1 - valid )
368
366
w_valid = w * valid .type_as (w )
369
367
if mask is not None :
370
- # pyre-fixme[6]: Expected `_OtherTensor` for 1st param but got
371
- # `int`.
372
368
w_valid = w_valid * mask .type_as (w )[:, :, None ]
373
369
374
370
# scatter add casts the votes into the weight accumulator
@@ -378,7 +374,6 @@ def splat_points_to_volumes(
378
374
379
375
# reshape idx_valid -> (minibatch, feature_dim, n_points)
380
376
idx_valid = idx_valid .view (ba , 1 , n_points ).expand_as (points_features )
381
- # pyre-fixme[16]: `int` has no attribute `view`.
382
377
w_valid = w_valid .view (ba , 1 , n_points )
383
378
384
379
# volume_features of shape (minibatch, feature_dim, n_voxels)
0 commit comments