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

outdims: revise implementation for Chain, dimension check for Dense #1252

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

hhaensel
Copy link
Contributor

This PR reflects the discussion in #1086.
outdims(c::Chain, isize) calculated the layers in the wrong order.
The function has been replaced by a performance optimised version following the same idea.

outdims(c::Dense, isize) now throws an error if dimensions do not match.

One test, which now throws an error, has been adapted, more tests have been added.

I will setup another PR for further improvements of outdims, as discussed in the corresponding issue.

@CarloLucibello
Copy link
Member

bors r+

@CarloLucibello
Copy link
Member

thanks!

@bors
Copy link
Contributor

bors bot commented Jun 30, 2020

Build succeeded:

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

Successfully merging this pull request may close these issues.

2 participants