| 15385 | } |
| 15386 | |
| 15387 | static struct ggml_tensor * ggml_add1_or_set(struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, struct ggml_hash_set zero_table) { |
| 15388 | if (ggml_hash_contains(zero_table, a)) { |
| 15389 | return ggml_repeat(ctx, b, a); |
| 15390 | } else { |
| 15391 | return ggml_add1_impl(ctx, a, b, false); |
| 15392 | } |
| 15393 | } |
| 15394 | |
| 15395 | static struct ggml_tensor * ggml_sub_or_set(struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, struct ggml_hash_set zero_table) { |
| 15396 | if (ggml_hash_contains(zero_table, a)) { |
no test coverage detected