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

Is there way to extract gamma Tensor in BN layer? #5

Open
rimchang opened this issue Nov 25, 2017 · 1 comment
Open

Is there way to extract gamma Tensor in BN layer? #5

rimchang opened this issue Nov 25, 2017 · 1 comment

Comments

@rimchang
Copy link

rimchang commented Nov 25, 2017

why not store gamma tensor?
Is there way to extract gamma Tensor?
I can't find gamma tensor in tensorflow graph

https://github.com/Cadene/tensorflow-model-zoo.torch/blob/master/inceptionresnetv2/tensorflow_dump.py
beta = sess.graph.get_tensor_by_name('InceptionV4/'+name+'/BatchNorm/beta:0').eval()
#gamma = sess.graph.get_tensor_by_name('InceptionV4/'+name+'/BatchNorm/gamma:0').eval()
mean = sess.graph.get_tensor_by_name('InceptionV4/'+name+'/BatchNorm/moving_mean:0').eval()
var = sess.graph.get_tensor_by_name('InceptionV4/'+name+'/BatchNorm/moving_variance:0').eval()

@Cadene
Copy link
Owner

Cadene commented Nov 26, 2017

As far as I remember, sometimes gamma tensor is not used in the tensorflow implementation.

However in Nasnet, it is used:

Did you encounter a problem with InceptionResnetV2?

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

2 participants