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

setLearningRate(double LR) throws Null Pointer Exception #6520

Closed
andlyu opened this issue Oct 4, 2018 · 4 comments · Fixed by #6546

Comments

@andlyu
Copy link

commented Oct 4, 2018

I'm using the setLearningRate() for an LSTM graph, and I get the following errors:
Exception in thread "main" java.lang.NullPointerException
at org.deeplearning4j.nn.updater.BaseMultiLayerUpdater.setStateViewArray(BaseMultiLayerUpdater.java:192)
at org.deeplearning4j.util.NetworkUtils.refreshUpdater(NetworkUtils.java:255)
at org.deeplearning4j.util.NetworkUtils.setLearningRate(NetworkUtils.java:196)
at org.deeplearning4j.util.NetworkUtils.setLearningRate(NetworkUtils.java:176)
at org.deeplearning4j.nn.graph.ComputationGraph.setLearningRate(ComputationGraph.java:4059)
at org.deeplearning4j.examples.recurrent.character.CompGraphLSTMExample2.main(CompGraphLSTMExample2.java:303)

@AlexDBlack

This comment has been minimized.

Copy link
Contributor

commented Oct 4, 2018

Can you provide some more information here?
Is the configuration identical to the LSTM character example, or have you made changes?
Is this before or after training?

Better yet, some code I can run would help a lot here.

@andlyu

This comment has been minimized.

Copy link
Author

commented Oct 5, 2018

@AlexDBlack AlexDBlack self-assigned this Oct 8, 2018

AlexDBlack added a commit that referenced this issue Oct 8, 2018
@AlexDBlack

This comment has been minimized.

Copy link
Contributor

commented Oct 8, 2018

Thanks for reporting. Fixed here: #6546

AlexDBlack added a commit that referenced this issue Oct 10, 2018
DL4J/ND4J Fixes (#6546)
* #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
@lock

This comment has been minimized.

Copy link

commented Nov 9, 2018

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.

@lock lock bot locked and limited conversation to collaborators Nov 9, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.