Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
15
def
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
Callers
11
test_searchsorted_in_bounds
Function · 0.85
test_searchsorted_out_of_bounds
Function · 0.85
test_searchsorted_reference
Function · 0.85
impl_test_lossfun_outer
Function · 0.85
test_inner_outer
Function · 0.85
test_lossfun_outer_monotonic
Function · 0.85
test_lossfun_outer_self_zero
Function · 0.85
impl_test_sample_train_mode
Function · 0.85
impl_test_sample_single_bin
Function · 0.85
impl_test_sample_sparse_delta
Function · 0.85
impl_test_sample_large_flat
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected