Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PABannier/sam3.cpp
/ save_tensor
Function
save_tensor
tests/dump_phase7_reference.py:75–77 ·
view source on GitHub ↗
(path: str, t: torch.Tensor)
Source
from the content-addressed store, hash-verified
73
74
75
def
save_tensor(path: str, t: torch.Tensor) -> None:
76
t = t.detach().cpu().float().contiguous()
77
save_raw(path, t.numpy(), t.shape)
78
79
80
def
save_ggml_bd(path: str, x_bd: torch.Tensor) -> None:
Callers
1
main
Function · 0.70
Calls
1
save_raw
Function · 0.70
Tested by
no test coverage detected