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

bn after xnor not working #2

Open
uuleon opened this issue Oct 11, 2017 · 5 comments
Open

bn after xnor not working #2

uuleon opened this issue Oct 11, 2017 · 5 comments

Comments

@uuleon
Copy link

uuleon commented Oct 11, 2017

error: ValueError: ('Input has undefined rank:', TensorShape(None))

@uuleon
Copy link
Author

uuleon commented Oct 11, 2017

update: reshape the tensor before BN seems working

@AngusG
Copy link
Owner

AngusG commented Oct 13, 2017

Do you mind providing some more details about the error you encountered and how it can be reproduced? How did you reshape the tensor to resolve the issue?

@uuleon
Copy link
Author

uuleon commented Oct 16, 2017

fc2 = tf.nn.dropout(xnor_gemm(fc1, Wb_2), self.keep_prob) fc2 = tf.reshape(fc2, [-1, self.n_hidden])
That is what i do to make it work.

And i meet another problem, when matrix m * n multiply n * k, the xnor gemm operator cannot work if m != n != k. And i fixed it by myself.

@uuleon
Copy link
Author

uuleon commented Oct 16, 2017

I have realized that some detail of your code match this paper, http://ai2-website.s3.amazonaws.com/publications/XNOR-Net.pdf. Am i right?

@Zoro95
Copy link

Zoro95 commented Aug 14, 2018

@uuleon Do you mind telling me how to fix the problem occurred when matrix m * n multiply n * k ?

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