| 105 | } |
| 106 | |
| 107 | core::TensorValue regular_conv_weight( |
| 108 | const core::TensorValue & weight, |
| 109 | const char * module_name) { |
| 110 | const auto contiguous = require_contiguous_nontransposed_weight(weight, module_name); |
| 111 | if (contiguous.type == GGML_TYPE_F32 || contiguous.type == GGML_TYPE_F16) { |
| 112 | return contiguous; |
| 113 | } |
| 114 | throw std::runtime_error( |
| 115 | std::string(module_name) + " weight type is unsupported for direct graph binding: " + |
| 116 | ggml_type_name(contiguous.type)); |
| 117 | } |
| 118 | |
| 119 | core::TensorValue conv_transpose1d_weight( |
| 120 | const core::TensorValue & weight) { |
no test coverage detected