Skip to content

Fix initialization of deconvolution layer parameters in python net_spec interface#1

Open
SvenTwo wants to merge 1 commit intolastmasterfrom
master
Open

Fix initialization of deconvolution layer parameters in python net_spec interface#1
SvenTwo wants to merge 1 commit intolastmasterfrom
master

Conversation

@SvenTwo
Copy link
Owner

@SvenTwo SvenTwo commented Apr 6, 2016

Currently, you cannot initialize deconvolution layer parameters in the same way you can for a convolution layer, because the associated _param structure is called convolution_param instead of deconvolution_param.

E.g. the following doesn't work:
deconv_layer = L.Deconvolution(bottom_layer, kernel_size=4, stride=2, num_output=25)

Solve the problem by adding the special case to param_name_dict().

…spec interface.

The deconvolution layer uses the convolution_param subgroup for its parameters, so hardcode that connection into param_name_dict().
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

Successfully merging this pull request may close these issues.

1 participant