MCPcopy 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
20def normalize_safe(x: torch.Tensor, eps: float = EPS) -> torch.Tensor:
21 return x / length_safe(x, eps)
22
23
24class Mesh:

Callers 2

compute_normalsMethod · 0.85
compute_tangentsMethod · 0.85

Calls 1

length_safeFunction · 0.85

Tested by

no test coverage detected