MCPcopy
hub / github.com/nerfstudio-project/gsplat / backward

Function backward

profiling/main.py:128–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 loss = render_colors.sum()
127
128 def backward():
129 loss.backward(retain_graph=True)
130 for v in [means, quats, scales, opacities, colors]:
131 v.grad = None
132
133 ellipse_time_bwd, _ = timeit(repeats, backward)
134 mem_toc_all = torch.cuda.max_memory_allocated() / 1024**3 - mem_tic

Callers

nothing calls this directly

Calls 1

backwardMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…