Adding cuDNN support

Signed-off-by: brian <brian@brutex.de>
master
Brian Rosenberger 2023-03-10 16:32:41 +01:00
parent bf10564be7
commit 8d31caffbe
3 changed files with 6 additions and 5 deletions

View File

@ -167,7 +167,7 @@ public class App {
trainData.reset(); trainData.reset();
int j = 0; int j = 0;
for (int i = 0; i < 10; i++) { for (int i = 0; i < 20; i++) {
while (trainData.hasNext()) { while (trainData.hasNext()) {
j++; j++;

View File

@ -4877,7 +4877,7 @@ public class Nd4j {
* Create an ndarray of zeros * Create an ndarray of zeros
* *
* @param shape the shape of the array * @param shape the shape of the array
* @return an ndarray with ones filled in * @return an ndarray with zeros filled in
*/ */
public static INDArray zeros(int[] shape, char order) { public static INDArray zeros(int[] shape, char order) {
checkShapeValues(shape); checkShapeValues(shape);
@ -4896,7 +4896,7 @@ public class Nd4j {
* Create an ndarray of zeros * Create an ndarray of zeros
* *
* @param shape the shape of the array * @param shape the shape of the array
* @return an ndarray with ones filled in * @return an ndarray with zeros filled in
*/ */
public static INDArray zeros(@NonNull int... shape) { public static INDArray zeros(@NonNull int... shape) {
return Nd4j.create(shape); return Nd4j.create(shape);
@ -4907,7 +4907,7 @@ public class Nd4j {
* Create an ndarray of zeros * Create an ndarray of zeros
* *
* @param shape the shape of the array * @param shape the shape of the array
* @return an ndarray with ones filled in * @return an ndarray with zeros filled in
*/ */
public static INDArray zeros(@NonNull long... shape) { public static INDArray zeros(@NonNull long... shape) {
return Nd4j.create(shape); return Nd4j.create(shape);

View File

@ -105,7 +105,8 @@ public class DL4JClassLoading {
throw new RuntimeException(instantiationException); throw new RuntimeException(instantiationException);
} catch (InvocationTargetException instantiationException) { } catch (InvocationTargetException instantiationException) {
log.error(String.format("InvocationTargetException was '%s'.", instantiationException.getTargetException().getMessage()), instantiationException); log.error(String.format("---------- ----------- ---------- \nInvocationTargetException was '%s'.", instantiationException.getTargetException().getMessage()), instantiationException);
log.error(String.format("java.library.path was '%s'\n---------- ---------- ----------", System.getProperty("java.library.path")));
throw new RuntimeException(instantiationException); throw new RuntimeException(instantiationException);
} }
} }