| 102 | } |
| 103 | |
| 104 | bool TensorValue::valid() const noexcept { |
| 105 | return tensor != nullptr && shape.rank > 0; |
| 106 | } |
| 107 | |
| 108 | TensorValue make_tensor(ModuleBuildContext & ctx, ggml_type type, const TensorShape & shape) { |
| 109 | if (ctx.ggml == nullptr) { |
no outgoing calls
no test coverage detected