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

program crash when get gradient of ConvolutionTranspose2D #3884

Open
cheyennee opened this issue Dec 8, 2023 · 0 comments
Open

program crash when get gradient of ConvolutionTranspose2D #3884

cheyennee opened this issue Dec 8, 2023 · 0 comments

Comments

@cheyennee
Copy link

repo code:

import numpy as np
import cntk as C

x = C.input_variable(shape=(1, 3, 1), needs_gradient=True, dtype=np.float32)
x_val = np.array([[[0.6],
                   [0.6],
                   [0.3]]], dtype=np.float32)

y = C.layers.ConvolutionTranspose2D((3, 3), 1)(x)
g = y.grad({x: x_val})

print("gradients : ", g)

version:
cntk 2.7

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