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

Adding an additional layer to the end of the net #11

Open
sjdrc opened this issue Oct 24, 2017 · 1 comment
Open

Adding an additional layer to the end of the net #11

sjdrc opened this issue Oct 24, 2017 · 1 comment

Comments

@sjdrc
Copy link

sjdrc commented Oct 24, 2017

Hi there, thanks very much for publishing your code.

I was wondering if it would be possible to add an argmax layer to the net so that the predictions are directly output. I am freezing the graph to a pb file and loading it in C++ and trying to perform that operation there seems to be much more complicated than tf.argmax(probabilities, -1). I added

prediction = tf.argmax(probabilities, -1, name='prediction')

after the logits_to_softmax layer in enet.py and trained for a few more iterations. Before I save the frozen graph I print out all the ops and I can see the 'ENet/prediction:0' layer but when I set that as the output in C++ it cannot target that layer as output. Any ideas on how to add this?

@kwotsin
Copy link
Owner

kwotsin commented Nov 17, 2017

Are you trying to perform the XLA AOT compilation? Can you elaborate on what you mean by "it cannot target that layer as output"?

@kwotsin kwotsin added this to the awaiting response milestone Dec 1, 2017
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