| 14406 | } |
| 14407 | |
| 14408 | bool 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 | |
| 14419 | bool sam3_get_model_tensor_info(const sam3_model & model, |
| 14420 | const std::string & tensor_name, |