MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / make_2tuple

Function make_2tuple

encoders/dinov2/layers/patch_embed.py:16–22  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

14
15
16def make_2tuple(x):
17 if isinstance(x, tuple):
18 assert len(x) == 2
19 return x
20
21 assert isinstance(x, int)
22 return (x, x)
23
24
25class PatchEmbed(nn.Module):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected