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

No FindEx for backward pass of test nets. #173

Merged

Conversation

pooyadavoodi
Copy link

  • Some networks consist of both training and testing networks.
  • Testing networks don't have backward pass. Therefore the blobs that are allocated in backward pass of training networks are not allocated for test networks. Note that in Caffe, blobs get allocated when we use them the first time.
  • The first time FindEx is called is during convolution layer setup. Since top, bottom, and weight blobs are used for input/output of FindEx, these blobs get allocated during layer setup.
  • FindEx sets convolution algorithms for forward, backward-filter, and backward-data for both training and testing networks. This PR changes that so that for testing networks, only forward algorithms are set, and thus no backward related blobs will be allocated by FindEx for testing network.

@lukeyeager
Copy link
Member

Confirmed that this lets DetectNet run without running out of memory.

@drnikolaev drnikolaev merged commit 28e0f13 into NVIDIA:caffe-0.15 Jun 18, 2016
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.

3 participants