Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggml_conv_2d problem #851

Closed
weishuai-GitHub opened this issue Jun 6, 2024 · 0 comments
Closed

ggml_conv_2d problem #851

weishuai-GitHub opened this issue Jun 6, 2024 · 0 comments

Comments

@weishuai-GitHub
Copy link

I have a problem when i compute ggml_conv_2d.
ggml_tensor *output = ggml_conv_2d(gctx,weight, input,stride,stride, 0, 0, 1, 1);
the inputs is:

weight->ne[0]: 1792
weight->ne[1]: 3
weight->ne[2]: 14
weight->ne[3]: 14
input->ne[0]: 1
input->ne[1]: 3
input->ne[2]: 14
input->ne[3]: 224

the output is:

output->ne[0]: -126
output->ne[1]: 1
output->ne[2]: 14
output->ne[3]: 224

I don’t know why the results of the convolution are like this?
In addition, in ggml_im2col , why is a-> ne [2] == b-> ne [2]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant