| 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)) { |
| 15397 | return ggml_neg(ctx, b); |
| 15398 | } else { |
| 15399 | return ggml_sub_impl(ctx, a, b, false); |
| 15400 | } |
| 15401 | } |
| 15402 | |
| 15403 | static void ggml_compute_backward(struct ggml_context * ctx, struct ggml_tensor * tensor, struct ggml_hash_set zero_table) { |
| 15404 | struct ggml_tensor * src0 = tensor->src[0]; |
no test coverage detected