deeplearning4j / deeplearning4j/deeplearning4j-examples

Style Transfer error

Open
#857 7 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Java
Stars
2.5k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

#### Issue Description

Please describe your issue, along with:
- expected behavior
Run until execution finished.

- encountered behavior
Error stops execution.

Stack Trace:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:66)
Caused by: java.lang.RuntimeException: NativeOps::execPairwiseTransform both operands must have same data type; Expected: [DOUBLE]; Actual: [FLOAT]
at org.nd4j.nativeblas.Nd4jCuda$NativeOps.execPairwiseTransform(Native Method)
at org.nd4j.linalg.jcublas.ops.executioner.CudaExecutioner.invoke(CudaExecutioner.java:1420)
at org.nd4j.linalg.jcublas.ops.executioner.CudaExecutioner.exec(CudaExecutioner.java:635)
at org.nd4j.linalg.api.ndarray.BaseNDArray.addi(BaseNDArray.java:3818)
at org.nd4j.linalg.api.ndarray.BaseNDArray.addi(BaseNDArray.java:3788)
at org.deeplearning4j.examples.styletransfer.NeuralStyleTransfer.createCombinationImage(NeuralStyleTransfer.java:192)
at org.deeplearning4j.examples.styletransfer.NeuralStyleTransfer.transferStyle(NeuralStyleTransfer.java:132)
at org.deeplearning4j.examples.styletransfer.NeuralStyleTransfer.main(NeuralStyleTransfer.java:124)
... 5 more

#### Version Information

Please indicate relevant versions, including, if relevant:

* Deeplearning4j version
1.0.0beta4
* platform information (OS, etc)
Windows 10
* CUDA version, if used
10.1
* NVIDIA driver version, if in use
430.86

#### Contributing

If you'd like to help us fix the issue by contributing some code, but would
like guidance or help in doing so, please mention it!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.