MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / sam3_dump_state_tensor

Function sam3_dump_state_tensor

sam3.cpp:14408–14417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14406}
14407
14408bool sam3_dump_state_tensor(const sam3_state& state,
14409 const std::string& tensor_name,
14410 const std::string& output_path) {
14411 struct ggml_tensor * t = sam3_find_state_tensor(state, tensor_name);
14412 if (!t) {
14413 fprintf(stderr, "%s: tensor '%s' not found in state\n", __func__, tensor_name.c_str());
14414 return false;
14415 }
14416 return sam3_dump_tensor_to_path(t, tensor_name, output_path);
14417}
14418
14419bool sam3_get_model_tensor_info(const sam3_model & model,
14420 const std::string & tensor_name,

Callers 15

mainFunction · 0.85
test_encode_imageFunction · 0.85
mainFunction · 0.85
compare_state_nhwcFunction · 0.85
compare_state_nchwFunction · 0.85
test_encode_imageFunction · 0.85
dump_checkpointsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

sam3_find_state_tensorFunction · 0.85
sam3_dump_tensor_to_pathFunction · 0.85

Tested by 15

mainFunction · 0.68
test_encode_imageFunction · 0.68
mainFunction · 0.68
compare_state_nhwcFunction · 0.68
compare_state_nchwFunction · 0.68
test_encode_imageFunction · 0.68
dump_checkpointsFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68