| 14395 | } |
| 14396 | |
| 14397 | bool sam3_get_state_tensor_info(const sam3_state & state, |
| 14398 | const std::string & tensor_name, |
| 14399 | sam3_tensor_info & info) { |
| 14400 | struct ggml_tensor * t = sam3_find_state_tensor(state, tensor_name); |
| 14401 | if (!t) { |
| 14402 | fprintf(stderr, "%s: tensor '%s' not found in state\n", __func__, tensor_name.c_str()); |
| 14403 | return false; |
| 14404 | } |
| 14405 | return sam3_fill_tensor_info(t, info); |
| 14406 | } |
| 14407 | |
| 14408 | bool sam3_dump_state_tensor(const sam3_state& state, |
| 14409 | const std::string& tensor_name, |