MCPcopy
hub / github.com/zju3dv/4K4D / assert_true

Function assert_true

tests/mipnerf360_tests.py:15–18  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

13
14@catch_throw
15def assert_true(expr):
16 if isinstance(expr, torch.Tensor):
17 expr = expr.all()
18 assert expr, f'{repr(expr)} is not true'
19
20
21@catch_throw

Calls

no outgoing calls

Tested by

no test coverage detected