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

Activation with "softmax" leads to segfault #231

Closed
simleo opened this issue Dec 11, 2020 · 2 comments
Closed

Activation with "softmax" leads to segfault #231

simleo opened this issue Dec 11, 2020 · 2 comments

Comments

@simleo
Copy link
Contributor

simleo commented Dec 11, 2020

This code that used to work up to v0.8a now (v0.8.1a) leads to a segmentation fault:

layer out = Activation(Dense(l, num_classes), "softmax");

The workaround is to replace it with:

layer out = Softmax(Dense(l, num_classes));

I don't know if the intention is that the old way should still work: if so, it should be fixed. If not, it should raise some exception, rather than resulting in a segmentation fault.

Note that the old idiom still shows up in some examples.

@RParedesPalacios
Copy link
Contributor

Simone, thanks, not sure what happens, Salva was working on that, let's see....

@salvacarrion
Copy link
Contributor

I've fixed the examples in #232

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