After the gates are computed, the block multiplies each channel of the original feature map by its gate. The gate is the same at every spatial position, so the whole channel is scaled.
Implement recalibrate(x, s), scaling each channel of the feature map by its gate.
Multiply the map by the gate vector, which NumPy broadcasts over the last axis.
No results yet
Run your code to check it against the examples, or submit to run every test.