Commit 73ba66e4 authored by David Novotny's avatar David Novotny Committed by Facebook GitHub Bot
Browse files

Bugfix in reduction feature aggr.

Summary: Bugfix

Reviewed By: bottler

Differential Revision: D40146840

fbshipit-source-id: a8415c361ed3cd939999b87311aff4d3bb1bcfe1
parent 4c8338b0
...@@ -229,7 +229,7 @@ class ReductionFeatureAggregator(torch.nn.Module, FeatureAggregatorBase): ...@@ -229,7 +229,7 @@ class ReductionFeatureAggregator(torch.nn.Module, FeatureAggregatorBase):
masks_sampled.device, masks_sampled.device,
self.exclude_target_view, self.exclude_target_view,
) )
aggr_weigths = masks_sampled * sampling_mask aggr_weigths = masks_sampled[..., 0] * sampling_mask[..., None]
feats_aggregated = { feats_aggregated = {
k: _avgmaxstd_reduction_function( k: _avgmaxstd_reduction_function(
f, f,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment