Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
''
&
#x27;
329
Returns:
330
the L2 norm.
331
''
&
#x27;
332
return
self.data.L2()
333
334
def
l1(self):
335
''
&
#x27;
Callers
nothing calls this directly
Calls
1
L2
Method · 0.80
Tested by
no test coverage detected