| 716 | } |
| 717 | |
| 718 | struct ggml_tensor * llama_model_loader::get_tensor_meta(const char * name) const { |
| 719 | const auto * weight = get_weight(name); |
| 720 | if (!weight) { |
| 721 | return nullptr; |
| 722 | } |
| 723 | return weight->tensor; |
| 724 | } |
| 725 | |
| 726 | struct ggml_tensor * llama_model_loader::require_tensor_meta(const std::string & name) const { |
| 727 | struct ggml_tensor * tensor = get_tensor_meta(name.c_str()); |