MCPcopy Create free account
hub / github.com/LetheSec/PLG-MI-Attack / l2_norm

Function l2_norm

models/classifiers/evolve.py:16–20  ·  view source on GitHub ↗
(input, axis=1)

Source from the content-addressed store, hash-verified

14
15
16def l2_norm(input, axis=1):
17 norm = torch.norm(input, 2, axis, True)
18 output = torch.div(input, norm)
19
20 return output
21
22
23class SEModule(Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected