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

Delta_Kernel bug #1

Open
wahyutirta opened this issue Jan 15, 2021 · 0 comments
Open

Delta_Kernel bug #1

wahyutirta opened this issue Jan 15, 2021 · 0 comments

Comments

@wahyutirta
Copy link

issue raises at this code in conv backward method
could not broadcast input array from shape (6,3,3) into shape (1,3,3)

self.delta_K[kernel_num,:,:,:] += delta[img, kernel_num, h, w] * X_padded[img, :, hstride:hstride+K_H, wstride:wstride+K_W]
inside delta kernel iteration, self.delta_kernel have 1 3x3 metric when X_padded have 6 3x3 metric.. i think it is missing np.sum before adding mutiply value to self.delta_K

image

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