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
NPE when using mask arrays in a network with StackVertex #6490
Comments
Are you able to share your network architecture that's causing this? |
I have tried a number of different network configurations using StackVertex, and I was unable to reproduce this issue. |
@AlexDBlack Thanks for nudging me on this, I'd forgotten to get back. I investigated this a bit more and realised it is due to a second Here is the simplest reproducing example I could make:
|
* #6539 Handle 0 gradient case for gradient normalization * #6521 Nd4j.gemm validation * #6543 View/order checks for BaseNDArray.mmuli() * #6542 mmuli shape validation * #6545 Require scalars, vectors, or same shape for INDArray.assign() * #6520 Fix setLearningRate(double) for the no updater state (SGD, etc) case * #6490 Fix StackVertex NPE with some masking cases * Cnn3DLossLayer. Typo in RecordReaderMultiDataSetIteratorTest. * Small fix * Cnn3DLossLayer gradient checks (not yet passing) * Cnn3dLossLayer masking + test fixes * Extra tests, CNN3D tweaks * Fix Conv3d layer support for NDHWC data format * Fix Cnn3DLossLayer * Allow size 1 dimensions in assign shape check * Minor test fixes * Fix RollAxis; other tweaks
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. |
Using deeplearning4j v1.0.0-beta2., I get the following crash immediately upon trying to fit a ComputationGraph with multiple inputs (each specified with a mask) and containing a StackVertex.
In particular it is
long size1_ex0 = maskArrays[0].size(1);
failing, due tomaskArrays[0]
being null.I've noticed in the implementation of
feedForwardMaskArrays
for other vertices (e.g.MergeVertex
) that they are coded to explicitly expect some elements inINDArray[] maskArrays
to be null, but I'm afraid I don't know enough about how mask arrays are implemented to say whether that is the cause of the issue in StackVertex..The error seems to be independent of whether or not I have null entries in the mask array I specify in my MultiDataSets - it simply occurs whenever and however I use masks. The network works OK without masks, but I'd like it to take into account variable-length time series.
Thanks for any insights!
The text was updated successfully, but these errors were encountered: