| 14417 | } |
| 14418 | |
| 14419 | bool sam3_get_model_tensor_info(const sam3_model & model, |
| 14420 | const std::string & tensor_name, |
| 14421 | sam3_tensor_info & info) { |
| 14422 | auto it = model.tensors.find(tensor_name); |
| 14423 | if (it == model.tensors.end() || !it->second) { |
| 14424 | fprintf(stderr, "%s: tensor '%s' not found in model\n", __func__, tensor_name.c_str()); |
| 14425 | return false; |
| 14426 | } |
| 14427 | return sam3_fill_tensor_info(it->second, info); |
| 14428 | } |
| 14429 | |
| 14430 | bool sam3_dump_model_tensor(const sam3_model & model, |
| 14431 | const std::string & tensor_name, |