-
Notifications
You must be signed in to change notification settings - Fork 3.8k
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
"Expected no workspace active" exception during evaluation #5351
Comments
Scratch that, it must be the training workspace mode -- setting training workspace mode to |
Proposed fix above is just to scope internal evaluation call out of workspaces. @AlexDBlack what would you say? Current DL4j mechanic will be ok with that? |
That won't work: currently (to detect bugs) we expect no workspace to be active external to that forward pass method. Even if we scope out eval, the outer WS will still be open and we'll still fail validation. So we need to mess with the validation conditions, or mess with the listener. Lines 186 to 189 in 74bd701
|
#5351 Fix EvaluativeListener workspace issue
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Training a simple MLP on MNIST with an EvaluativeListener, I get the following workspace-related exception:
Exception in thread "main" org.nd4j.linalg.workspace.ND4JWorkspaceException: Expected no workspace active in outputOfLayerDetached - Open/active workspaces: [WS_ALL_LAYERS_ACT]
It happens on the first call to
doEvaluation(...)
inside of the listener, so it likely has to do with the inference workspace mode...?Here's a full stack trace for the exception:
The text was updated successfully, but these errors were encountered: