Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Topdu/OpenOCR
/ norm2
Function
norm2
tools/utils/e2e_utils/visual.py:145–148 ·
view source on GitHub ↗
(x, axis=None)
Source
from the content-addressed store, hash-verified
143
144
145
def
norm2(x, axis=None):
146
if
axis:
147
return
np.sqrt(np.sum(x**2, axis=axis))
148
return
np.sqrt(np.sum(x**2))
149
150
151
def
cos(p1, p2):
Callers
1
cos
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected