Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/meta-llama/llama-models
/ to_2tuple
Function
to_2tuple
models/llama3/multimodal/utils.py:17–20 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
15
16
17
def
to_2tuple(x):
18
if
isinstance(x, collections.abc.Iterable):
19
return
x
20
return
(x, x)
Callers
3
resize_local_position_embedding
Function · 0.85
initialize_global_position_embedding_from_local
Function · 0.85
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected