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

NPE in Nd4j.zeros(int[] shape, DataType dataType) #7268

Closed
nicoulaj opened this issue Mar 8, 2019 · 1 comment
Closed

NPE in Nd4j.zeros(int[] shape, DataType dataType) #7268

nicoulaj opened this issue Mar 8, 2019 · 1 comment
Labels
ND4J ND4J Issues

Comments

@nicoulaj
Copy link

nicoulaj commented Mar 8, 2019

Issue Description

This test:

@Test
public void test() {
    Nd4j.zeros(new int[] { 2 }, DataType.DOUBLE);
}

throws:

java.lang.NullPointerException
	at org.nd4j.linalg.api.ndarray.BaseNDArray.ordering(BaseNDArray.java:5269)
	at org.nd4j.linalg.api.ndarray.BaseNDArray.init(BaseNDArray.java:2645)
	at org.nd4j.linalg.api.ndarray.BaseNDArray.init(BaseNDArray.java:2641)
	at org.nd4j.linalg.api.ndarray.BaseNDArray.<init>(BaseNDArray.java:264)
	at org.nd4j.linalg.cpu.nativecpu.NDArray.<init>(NDArray.java:451)
	at org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.create(CpuNDArrayFactory.java:132)
	at org.nd4j.linalg.factory.BaseNDArrayFactory.create(BaseNDArrayFactory.java:163)
	at org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:4450)
	at org.nd4j.linalg.factory.Nd4j.zeros(Nd4j.java:4456)

Version Information

  • Deeplearning4j version: sonatype repo 1.0.0 snapshot: 1.0.0-20190308.084722-15882
  • platform information (OS, etc): linux x86_64
  • CUDA version, if used: N/A
  • NVIDIA driver version, if in use: N/A

Aha! Link: https://skymindai.aha.io/features/ND4J-72

@AlexDBlack AlexDBlack self-assigned this Mar 13, 2019
AlexDBlack added a commit that referenced this issue Mar 13, 2019
AlexDBlack added a commit that referenced this issue Mar 16, 2019
@agibsonccc agibsonccc added the ND4J ND4J Issues label Mar 18, 2019
AlexDBlack added a commit that referenced this issue Mar 18, 2019
* Evaluation - segmentation support

* ROCBinary and ROCMultiClass segmentation support

* Fixes and EvaluationCalibration segmentation support

* ROC

* #7225 L2NormalizeVertex equals/hashCode fix

* #7268 Fix zeros constructor issue

* #7217 Fix (+ optimize) ConvolutionalIterationListener

* #7292 INDArray.reshape overload - enforce no view

* #7252 Remove Nd4j.emptyLike in favor of Nd4j.zerosLike

* #7277 Switch INDArray.repeat to native op to fix issue

* #7275 Nd4j.meshGrid dtype fix

* Switch Nd4j.tensorMmul to use custom op

* Small fixes

* Small fixes
@lock
Copy link

lock bot commented Apr 17, 2019

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 Apr 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ND4J ND4J Issues
Projects
None yet
Development

No branches or pull requests

3 participants