(F)
| 30 | |
| 31 | |
| 32 | def stdv_channels(F): |
| 33 | assert(F.dim() == 4) |
| 34 | F_mean = mean_channels(F) |
| 35 | F_variance = (F - F_mean).pow(2).sum(3, keepdim=True).sum(2, keepdim=True) / (F.size(2) * F.size(3)) |
| 36 | return F_variance.pow(0.5) |
| 37 | |
| 38 | |
| 39 |
nothing calls this directly
no test coverage detected