Skip to content

Kronecker product of two ggml_tensor: How to? #1088

Answered by stduhpf
stduhpf asked this question in Q&A
Discussion options

You must be logged in to vote

But that lead me on the right path. I believe ggml_mul(ctx, ggml_upscale_ext(ctx, a, a->ne[0] * b->ne[0], a->ne[1] * b->ne[1], a->ne[2] * b->ne[2], a->ne[3] * b->ne[3]), b); should work. At least it seems to be the correct shape.

Edit: it crashes (because upscale only works with f32 apparently, otherwise it works)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stduhpf
Comment options

@stduhpf
Comment options

Answer selected by stduhpf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants