MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / cast_tuple

Function cast_tuple

locationencoder/nn/siren.py:12–13  ·  view source on GitHub ↗
(val, repeat = 1)

Source from the content-addressed store, hash-verified

10 return val is not None
11
12def cast_tuple(val, repeat = 1):
13 return val if isinstance(val, tuple) else ((val,) * repeat)
14
15# sin activation
16

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected