MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_upscale

Function ggml_upscale

subprojects/llama.cpp/ggml/src/ggml.c:4936–4943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4934}
4935
4936struct 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
4945struct ggml_tensor * ggml_upscale_ext(
4946 struct ggml_context * ctx,

Callers 2

buildMethod · 0.85
build_graphMethod · 0.85

Calls 1

ggml_interpolate_implFunction · 0.85

Tested by 1

build_graphMethod · 0.68