MCPcopy 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
75def 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
80def save_ggml_bd(path: str, x_bd: torch.Tensor) -> None:

Callers 1

mainFunction · 0.70

Calls 1

save_rawFunction · 0.70

Tested by

no test coverage detected