Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIAGameWorks/Falcor
/ normalize_safe
Function
normalize_safe
scripts/inv-rendering/mesh_utils.py:20–21 ·
view source on GitHub ↗
(x: torch.Tensor, eps: float = EPS)
Source
from the content-addressed store, hash-verified
18
19
20
def
normalize_safe(x: torch.Tensor, eps: float = EPS) -> torch.Tensor:
21
return
x / length_safe(x, eps)
22
23
24
class
Mesh:
Callers
2
compute_normals
Method · 0.85
compute_tangents
Method · 0.85
Calls
1
length_safe
Function · 0.85
Tested by
no test coverage detected