MCPcopy Create free account
hub / github.com/JasonLSC/GSCodec_Studio / assert_consistent_sizes

Function assert_consistent_sizes

tests/test_strategy.py:70–72  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

68 from gsplat.strategy import DefaultStrategy, MCMCStrategy
69
70 def assert_consistent_sizes(params):
71 sizes = [v.shape[0] for v in params.values()]
72 assert all([s == sizes[0] for s in sizes])
73
74 torch.manual_seed(42)
75

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected