MCPcopy Create free account
hub / github.com/apache/singa / l2

Method l2

python/singa/tensor.py:327–332  ·  view source on GitHub ↗

Returns: the L2 norm.

(self)

Source from the content-addressed store, hash-verified

325 self.device = get_default_device()
326
327 def l2(self):
328 '''
329 Returns:
330 the L2 norm.
331 '''
332 return self.data.L2()
333
334 def l1(self):
335 '''

Callers

nothing calls this directly

Calls 1

L2Method · 0.80

Tested by

no test coverage detected