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

ConvolutionBackwardDataOpr 初始化错误 #4

Closed
bigeagle opened this issue Jan 4, 2021 · 1 comment
Closed

ConvolutionBackwardDataOpr 初始化错误 #4

bigeagle opened this issue Jan 4, 2021 · 1 comment

Comments

@bigeagle
Copy link
Contributor

bigeagle commented Jan 4, 2021

https://github.com/MegEngine/mgeconvert/blob/master/mgeconvert/mge_context/mge_op.py#L302

class ConvolutionBackwardDataOpr(MgeOpr):
    name = "ConvolutionBackwardData"

    def __init__(self, opr):
        super().__init__(opr)
        self.kernel_shape = get_shape(opr.inputs[1])
        self.data_format = opr.params["format"]
        self.dilation_w = opr.params["dilate_w"]
        self.dilation_h = opr.params["dilate_h"]
        self.pad_w = opr.params["pad_w"]
        self.pad_h = opr.params["pad_h"]
        self.stride_w = opr.params["stride_w"]
        self.stride_h = opr.params["stride_h"]
        self.sparse = opr.params["sparse"]

这里应该使用 self.params

@dingshaohua960303
Copy link
Collaborator

@bigeagle 这里是应该用 self.params, 我们改一下

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

3 participants