Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

program crash when get gradient of ConvolutionTranspose2D #3884

@cheyennee

Description

@cheyennee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions