| 4934 | } |
| 4935 | |
| 4936 | struct ggml_tensor * ggml_upscale( |
| 4937 | struct ggml_context * ctx, |
| 4938 | struct ggml_tensor * a, |
| 4939 | int scale_factor, |
| 4940 | enum ggml_scale_mode mode) { |
| 4941 | GGML_ASSERT(scale_factor > 1); |
| 4942 | return ggml_interpolate_impl(ctx, a, a->ne[0] * scale_factor, a->ne[1] * scale_factor, a->ne[2], a->ne[3], mode); |
| 4943 | } |
| 4944 | |
| 4945 | struct ggml_tensor * ggml_upscale_ext( |
| 4946 | struct ggml_context * ctx, |