Bugfix in reduction feature aggr.

Summary: Bugfix

Reviewed By: bottler

Differential Revision: D40146840

fbshipit-source-id: a8415c361ed3cd939999b87311aff4d3bb1bcfe1
This commit is contained in:
David Novotny 2022-10-07 01:45:24 -07:00 committed by Facebook GitHub Bot
parent 4c8338b00f
commit 73ba66e4ab

View File

@ -229,7 +229,7 @@ class ReductionFeatureAggregator(torch.nn.Module, FeatureAggregatorBase):
masks_sampled.device,
self.exclude_target_view,
)
aggr_weigths = masks_sampled * sampling_mask
aggr_weigths = masks_sampled[..., 0] * sampling_mask[..., None]
feats_aggregated = {
k: _avgmaxstd_reduction_function(
f,