| 96 | } |
| 97 | |
| 98 | core::TensorValue require_f32_weight( |
| 99 | const core::TensorValue & value, |
| 100 | const char * module_name) { |
| 101 | if (value.type != GGML_TYPE_F32) { |
| 102 | throw std::runtime_error(std::string(module_name) + " requires uploaded F32 weights"); |
| 103 | } |
| 104 | return require_contiguous_nontransposed_weight(value, module_name); |
| 105 | } |
| 106 | |
| 107 | core::TensorValue regular_conv_weight( |
| 108 | const core::TensorValue & weight, |
no test coverage detected