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

Why using PowerLayer for identity mapping? #33

Closed
yijunCai opened this issue Dec 11, 2016 · 3 comments
Closed

Why using PowerLayer for identity mapping? #33

yijunCai opened this issue Dec 11, 2016 · 3 comments

Comments

@yijunCai
Copy link

Hi @sanghoon
I notice that for short-cut connections, A PowerLayer is used for identity mapping(since both power and scale are set to 1) as follows:

layer {
name: "conv2_3/input"
type: "Power"
bottom: "conv2_2"
top: "conv2_3/input"
power_param {
power: 1
scale: 1
shift: 0
}
}
layer {
name: "conv2_3"
type: "Eltwise"
bottom: "conv2_3/3"
bottom: "conv2_3/input"
top: "conv2_3"
eltwise_param {
operation: SUM
coeff: 1
coeff: 1
}
}

I'm wondering if "conv2_3/input" is neccessary. Why not take "conv2_2" directly as bottom input for "conv2_3"?

@xiaoxiongli
Copy link

i think you can.

@sanghoon
Copy link
Owner

You can exclude the redundant Power layers.
I've added them so that I can easily generate the prototxt with my own script,
but they do nothing.

@zimenglan-sysu-512
Copy link

@sanghoon can you share your script which to generate the prototxt? thanks.

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

4 participants