Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIAGameWorks/Falcor
/ length
Function
length
scripts/inv-rendering/mesh_utils.py:12–13 ·
view source on GitHub ↗
(x: torch.Tensor)
Source
from the content-addressed store, hash-verified
10
11
12
def
length(x: torch.Tensor) -> torch.Tensor:
13
return
torch.sqrt(dot(x, x))
14
15
16
def
length_safe(x: torch.Tensor, eps: float = EPS) -> torch.Tensor:
Callers
2
compute_normals
Method · 0.70
compute_tangents
Method · 0.70
Calls
1
dot
Function · 0.70
Tested by
no test coverage detected