Skip to content

Deconvolution layer not working in python interface #4052

@young-geng

Description

@young-geng

When using python NetSpec to generate network prototxt, layers.Deconvolution would not accept any parameters. It produces this error: AttributeError: 'LayerParameter' object has no attribute 'stride'

A quick look through the source code indicates that this is likely caused by the python interface getting the all the layer names by listing the fields of LayerParameter message in the protobuf. However, since deconv layers uses ConvolutionParameter, it does not have a DeconvolutionParameter message and hence won't be listed in the python interface.

I've also uploaded a piece of code that would trigger the problem, and you can find it here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions