MCPcopy Create free account
hub / github.com/RylonW/DocNLC / stdv_channels

Function stdv_channels

models/multitask_docnc_model.py:32–36  ·  view source on GitHub ↗
(F)

Source from the content-addressed store, hash-verified

30
31
32def 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

Callers

nothing calls this directly

Calls 1

mean_channelsFunction · 0.70

Tested by

no test coverage detected