| 177 | config.cuda_f16_output ? GGML_TYPE_F16 : GGML_TYPE_F32); |
| 178 | } |
| 179 | return result; |
| 180 | } |
| 181 | |
| 182 | void validate_norm_config(const NormConfig & config) { |
| 183 | if (config.hidden_size <= 0) { |
| 184 | throw std::runtime_error("NormConfig.hidden_size must be positive"); |
| 185 | } |
| 186 | if (!(config.eps > 0.0f)) { |
| 187 | throw std::runtime_error("NormConfig.eps must be positive"); |
no test coverage detected