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

Handle single-matrix inputs correctly #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bgat
Copy link

@bgat bgat commented Sep 12, 2016

When feeding a single matrix of inputs to cnnff, i.e. running "live data" through a network that has already been trained, the size() command drops the third parameter in its result because the input looks like two-dimensional data rather than a single instance of three-dimensional data. This missing parameter then triggers an error.

Adding postpad() forces the third parameter to a '1' if size() doesn't provide a different value.

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.

1 participant