58 Commits

Author SHA1 Message Date
DRayX 4c22ac5fe4 Update lombok imports to improve delombok compatibility (#10416)
* Replace wildcard lombok imports with single class imports

This helps improve compatibility with delombok

* Removed unused lombok imports

Delombok doesn't remove unused imports
2026-02-24 05:13:17 +09:00
Adam Gibson 0f94605d5f ADR/publishing prep for renamespacing and release updates (#10212)
* ADR for renamespacing and release updates

* ADR for renamespacing and release updates

* use new secrets for publishing

* use new secrets for publishing

* remove old distribution management

* remove try catch for cuda build

* update string functionality for cuda

* update string functionality for cuda

* update string functionality for cuda

* update string functionality for cuda

* update string functionality for cuda

* update string functionality for cuda

* remove old distribution management

* remove more ossrh references

* update environment variables

* update lombok version

* clean up test dependencies errant linker flags

* get rid of dup flags
2025-05-27 12:02:19 +09:00
Adam Gibson 722592d8a9 Update for publishing to snapshots (#10211)
* fix extra quote inserted by intellij

* Fix path

* fix executable permissions usage

* improve directory resolution and restore some files from the previous PR

* remove old unused dep versions
Update to new march 2024 central release plugin

* update central publishing version

* temp disable mirror

* fix hallucinated version

* update maven invoker version for jetspeed

* remove old build properties
add better directory resolution for copy flatc

* fix helpers sources for cpu (api updates)
perform maven antrun upgrade

* more fixes for onednn helpers

* update more antrun usage

* fix pooling param usage

* remove findbugs on the 2 files it was used on

* debug odd build path issues

* try again

* remove bad ls

* try again

* another attempt

* Add troubleshooting logs again

* Remove specific gcc versions

* update build

* cd to original directory instead

* Remove enforcer check

* remove debug steps

* remove extra steps

* update linux, android and cuda versions

* update arm usage defaults

* remove 32 bit builds

* alternative path

* alternative path get rid of old tools

* get rid of over simplified bootstrap libnd4j download usage

* remove extra cmake

* remove manual path setting

* arm compilation fix

* debug armcompute

* update android-x86_64 openblas

* upgrade gcc

* minor armcompute const changes

* update openblas version

* fix armcompute paths

* remove ls

* update cuda versions and envrionment variables

* fix syntax errors

* fix syntax errors

* fix syntax errors

* fix syntax errors

* another rev

* update msys command

* rev

* fix classifier

* rev android-x86_64

* rev android-x86_64

* update cuda env passing

* fix linux-arm64 syntax error

* cuda rev

* cuda rev

* update arm else if branches for matching

* remove external PS script?

* remove external PS script?

* remove external PS script?

* improve architecture detection

* update list operation conv2d armcompute

* add flatbuffer generated code

* remove old maven auth

* remove old legacny average and accumulate

* remove cache due to 422 error

* ensure armcompute is optional

* ensure armcompute is optional

* disk space clean up on all workflows

* deal with windows service issue

* ensure nvcc is on path

* Add arm64 protoc
Update cuda paths

* convert to use numeric types only mitigating lld errors found by clang

* Add arm64 protoc
Update cuda paths

* fix syntax error

* fix overriding properties causing libnd4j not to be built with cuda

* update windows version

* try to update cl.exe paths

* update debugging for nvcc

* update cuda flags to work with linux/windows

* remove extra cuda install

* fix duplicate sources

* more unsupported compiler changes

* remove unneeded source and javadoc

* better cudnn detection

* update where we put unsupported compiler

* Collapse cmake logic

* Collapse cmake logic

* clean up consolidated file

* flatbuffers fix

* fix hallucinated paths

* generate flatbuffers by default

* fix hallucinated paths

* ensure imports present

* fix flatc target order

* fix elif syntax

* more rearrange

* fix git tag

* update template to allow proper configuration generation

* remove guard

* change quotes

* change quotes

* test default

* fix missing functions

* rearrange dependencies

* set the engine

* reintegrate some old cuda logic

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* Add back in function defs

* update api to use proper cuda versions

* update api to use proper cuda versions

* update api to use proper cuda versions

* Add back in function defs

* delete old paths

* aDd back include_ops.h generation

* delete old paths

* reinroduce old comand

* delete old paths

* delete old paths

* better tar unpacking

* fix for suffixes

* Add missing cpu sources

* fix duplicate profile

* change mac image

* change mac image

* get rid of old gpg key step

* get rid of javadoc on mac

* remove unneeded deps for mac

* update arm compute path

* remove old command checks

* remove gpg key step

* clang specific type erro

* clang specific type erro

* add another missing cpu path

* add another missing cpu path

* fix helpers sources ordering

* fix helpers sources ordering

* Add back createFromDescriptor

* fix helpers sources ordering

* fix helpers sources ordering

* fix helpers sources ordering

* fix helpers sources ordering

* Add back createFromDescriptor

* add debug for onednn

* add debug for onednn

* SFINAE for type aliases

* SFINAE for type aliases

* SFINAE for type aliases

* SFINAE for type aliases

* ensure we tell compiler we're ok with certain apple version minimums

* ensure we tell compiler we're ok with certain apple version minimums

* ensure we tell compiler we're ok with certain apple version minimums

* ensure we tell compiler we're ok with certain apple version minimums

* fix imports

* update linker path

* fix lock type usage

* change order of sources

* share mutex types

* share mutex types

* share mutex types

* update linker path

* share mutex types

* share mutex types

* share mutex types

* decrease type pairs for sort

* decrease type pairs for sort

* decrease type pairs for sort

* decrease type pairs for sort

* update the special methods to use combinations

* update the special methods to use combinations

* update the special methods to use combinations

* update the special methods to use combinations

* update the special methods to use combinations

* update the special methods to use combinations

* update the special methods to use combinations

* update the special methods to use combinations

* update the special methods to use combinations

* update the special methods to use combinations

* update the special methods to use combinations

* standardize output paths

* fix template paths

* refactor compiler flags

* update onednn to use similar approach to armcompute

* refactor compiler flags

* fix paths

* fix paths

* fix paths

* fix paths

* fix paths

* fix paths

* fix paths

* fix paths

* change target expand types

* change target expand types

* add new pairwise types

* add new pairwise types

* add new pairwise types

* update linker paths

* add new pairwise types

* add new pairwise types

* add new pairwise types

* fix strings with transform

* fix strings with transform

* update linker paths

* update default values for libnd4j.outputPath

* update default values for libnd4j.outputPath

* update default values for libnd4j.outputPath

* update pom.xml namespaces

* Update .github/workflows/build-deploy-linux-cuda-12.6.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/workflows/build-deploy-linux-x86_64.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-08 04:52:38 +09:00
Adam Gibson 2b62123620 Ag broadcast reduce3 smoke tests (#10159)
* add new smoke tests
fix scalar index when using the indexing api
fix usage of index2coords by migrating shape information
to shape::shapeOf
fix usage of coords2index by migrating accidental shapeOf invocations to strides

* Fix reduce3 buffer() calls in op execution

* fix test that didn't account for overlapping views

* remove print statements
2024-12-10 17:18:06 +09:00
Adam Gibson bbe151a795 add new smoke tests (#10157)
fix scalar index when using the indexing api
fix usage of index2coords by migrating shape information
to shape::shapeOf
fix usage of coords2index by migrating accidental shapeOf invocations to strides
2024-12-03 06:21:26 +09:00
Paweł Łoziński 9c3994f435 switch from deprecated opencsv (#10150) 2024-11-23 06:51:50 +09:00
Adam Gibson 9ed39ba7b8 Ag 10120 followup (#10135)
* overhaul cuda to work with new changes
update nativeops on cpu side

* follow up changes to:
https://github.com/deeplearning4j/deeplearning4j/pull/10120
2024-11-06 20:25:16 +09:00
Nikolaus Trixner 13471cd197 10068 Refactor CSVVariableSlidingWindowRecordReader to use char delimiter, actually split files (#10070)
Signed-off-by: Nikolaus Trixner <n.trixner@gmx.at>
2024-06-12 21:06:55 +09:00
Adam Gibson 8ec6397c56 Fix up tensor mmul, axis serialization when configuring from arguments (#9778)
* Fix up tensor mmul, axis serialization when configuring from arguments

* Remove unused axes creation
2022-09-16 17:16:04 +09:00
Adam Gibson 2fcebccb25 Misc test fixes (spark,datavec) (#9737)
* Misc test fixes (spark,datavec)

* Remove invalid test

* Fix up shapes in windowconverter, fix top k test case
2022-07-25 21:12:58 +09:00
Adam Gibson 01f340ea13 Misc 2d grad fixes, Spark test fixes test refactoring (#9735)
* Fix up create_view tests, assign operation for views

* Misc shape related fixes for gradients and tests related to old 2d assumption with vectors

* Ignore missing op

* Fix updater get with 1d standardization

* Fix up another 1d test case

* Update TestRegressionTest080.java

* Update SlicingTests.java

* Fix up booleanindexing backtracklinesearch test cases

* Fix up test assertion

* Remove old tensor array logic for tensorarray remove, fix test

* Address nits, remove noninplacevalidation listener

* Remove tests with old assumptions, migrate arrowserde test to platform-tests

* Add testresources profile to nd4j-presets-common

* More test collapsing

* Collapse tests

* Remove old profiles

* Delete old aurora backend, misc pom clean up

* Delete old test resources profiles

* Update datavec-api test locations

* More test migrations

* More tests

* Migrate tests for spark

* Collapse spark parameter server tests

* Remove old tests

* Collapse omnihub

* Rename tests for compilation errors

* Graph package moving

* Add missing dep

* nlp test adjustments

* Update names in platform-tests datavec local modules

* Add missing nlp imports

* Remove hard coded test, add deepwalk import

* Update pom.xml

* Update pom.xml

* Update pom.xml

* Add mockito dep

* Update TestGraphLoading.java

* Update pom.xml

* Remove deprecated tests, add missing dep

* Clean up intellij accidental refactoring

* Update AeronUdpTransportTest.java

* Update EndingPreProcessorTest.java

* More test updates

* More test refactoring

* More assertion clean up, remove deprecated test

* More test clean up

* Remove more deprecated tests

* More test updates

* More test updates

* More tests

* Update WeightedWalkerTest.java

* Update spark versions, dependencies

* Handle spark upgrade, add a set closeable false to prevent spark from closing arrays early
2022-07-25 07:07:14 +09:00
Adam Gibson c680ed14e3 Redoes https://github.com/eclipse/deeplearning4j/pull/9629 (#9630) 2022-02-09 22:02:47 +09:00
Adam Gibson 8ce2d9df8f Java support Version updates (#9626)
* Add back CI updates

* Fix android compilation error

* Update TopK.java

* Updates project for java 9+

* Remove old grpc server, rename backend packages, change flatbuffers to temp konduit fork for cuda compilation

* More renames + remove extra generated classes

* Update 0016 - Java 9+ Support.md

* Add back license from flatbuffers generation

* Remove solr modules, update java 9 module comments (fixed some leaving some ignored such as anything spark related)

* Update pom.xml

* Add cuda compute capabilities to reduce build times

* Add default flags for only building certain modules for cuda on windows

* Add back java 8 support

* Update build-deploy-windows-cuda-11.2.yml

* Update build-deploy-windows-cuda-11.4.yml

* Update build-deploy-windows-cuda-11.2.yml

* Update ccs, remove defaults

* Update build-deploy-linux-cuda-11.4.yml

* Add module info

* Update IndexedTail.java

* Add also make and remove deeplearning4j-cuda from build

* Add also make and remove deeplearning4j-cuda from build

* Update IndexedTail.java

* Add missing cuda modules

* Remove old unused concurrency module
2022-02-09 19:25:39 +09:00
Adam Gibson 64d45bbb11 Update test profiles to add proper aurora proper enablement 2021-10-06 06:49:13 +09:00
Adam Gibson 005a16b3d1 Add missing reflect configuration json 2021-09-25 10:39:02 +09:00
Thomas Leplus e1b320f269 NaN comparison does not behave as expected
See https://www.baeldung.com/java-not-a-number for details.
2021-09-16 22:37:51 -07:00
yumg 77e03670c8 fix eclipse/deeplearning4j#9266 and eclipse/deeplearning4j-examples#1029
Signed-off-by: yumg <16405589@qq.com>
2021-06-20 09:57:18 +08:00
Marco 22042843f6 Fix string histograms 2021-05-15 14:31:35 +02:00
Adam Gibson 137af788c3 Fix buffer rewind compilation error compat with jdk 9+
See similar issue: https://github.com/apache/felix/pull/114
2021-04-01 15:24:22 +09:00
agibsonccc 623bf24a04 Add long tags for longer running tests, misc fixes for test failures 2021-03-23 15:50:42 +09:00
agibsonccc 5e8951cd8e Add tags for junit 5 2021-03-20 19:06:24 +09:00
agibsonccc b403157be0 Disable some failing datavec tests 2021-03-18 11:16:00 +09:00
agibsonccc ad4f47096c Unify nd4j test profiles, get rid of old modules, fix more parameter issues with junit 5 tests 2021-03-18 10:58:50 +09:00
agibsonccc e0077c38a9 More junit 4 removal, all tests compile. FIxed parameterized test invocation. Deleted nd4j-parameter-server-status that used play 2021-03-17 20:04:53 +09:00
agibsonccc 82bdcc21d2 All tests compile 2021-03-16 11:57:24 +09:00
agibsonccc fa1a31c877 Upgrade dl4j to junit 5 2021-03-15 13:02:01 +09:00
agibsonccc 48856b6182 Add ignores for tests not passing for individual processing later 2021-03-08 15:25:45 +09:00
agibsonccc 4766032444 Update copyright to mention NOTICES file 2021-02-01 21:31:04 +09:00
agibsonccc c715aea405 Update LICENSE 2021-02-01 17:47:29 +09:00
agibsonccc 65c6a9a42e Dev commits 2021-02-01 14:31:20 +09:00
Alexei KLENIN 881a672fa1 FEATURE: possibility to define global Classload for ND4J (#8972)
Signed-off-by: hosuaby <alexei.klenin@gmail.com>
2020-10-06 11:25:01 +09:00
dariuszzbyrad 4f9b6fcf1e Removed infinitely loop (#9076)
Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>
2020-08-29 21:06:37 +09:00
dariuszzbyrad 6afec82181 Datavec bulk operation (#9075)
* Bulk operation can be used instead of iteration inspection

Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>

* Redundant 'Collection.addAll()' call inspection

Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>
2020-08-28 07:59:14 +09:00
dariuszzbyrad 4394965cb5 Datavec code cleaup (#9071)
* removed unnecessary semicolons

Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>

* Use standard charset object

Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>

* Removed unused imports

Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>
2020-08-23 10:45:12 +09:00
dariuszzbyrad 7f4f3b61f5 Added support for the archunit (#9062)
* Added support for the archunit

Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>

* Updated pom files

Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>
2020-08-21 13:30:37 +09:00
Samuel Audet 029b84e2b7 Development updates (#9053)
* RL4J: Add generic update rule (#502)

Signed-off-by: Alexandre Boulanger <aboulang2002@yahoo.com>

* Shyrma reduce (#481)

* - start working on improving of cpu legacy code for reduce ops

Signed-off-by: Yurii <iuriish@yahoo.com>

* - further work on improving legacy loops

Signed-off-by: Yurii <iuriish@yahoo.com>

* - still working on improving reduce ops

Signed-off-by: Yurii <iuriish@yahoo.com>

* - further work on improving reduce ops

Signed-off-by: Yurii <iuriish@yahoo.com>

* - testing speed run of new reduce op

Signed-off-by: Yurii <iuriish@yahoo.com>

* - working on improvement of default loop for reduce op

Signed-off-by: Yurii <iuriish@yahoo.com>

* - update signatures of stuff which calls reduce ops

Signed-off-by: Yurii <iuriish@yahoo.com>

* - make corrections in cuda reduce kernels

Signed-off-by: Yurii <iuriish@yahoo.com>

* - change loop for default case in broadcast legacy ops

Signed-off-by: Yurii <iuriish@yahoo.com>

* - comment some shape stuff

Signed-off-by: Yurii <iuriish@yahoo.com>

* - comment unnecessary prints in RNGtests

Signed-off-by: Yurii <iuriish@yahoo.com>

* - finish to resolve conflicts after master has been merged

Signed-off-by: Yurii <iuriish@yahoo.com>

* - get rid of some compilation mistakes of cuda stuff

Signed-off-by: Yurii <iuriish@yahoo.com>

* - minor changes

Signed-off-by: Yurii <iuriish@yahoo.com>

* - further search for bug causing crash on java test

Signed-off-by: Yurii <iuriish@yahoo.com>

* - add scalar case in reduce_ ... exec stuff

Signed-off-by: Yurii <iuriish@yahoo.com>

* - minor corrections in NAtiveOps.cu

Signed-off-by: Yurii <iuriish@yahoo.com>

* - add switch to scalar case execReduceXD functions

Signed-off-by: Yurii <iuriish@yahoo.com>

* - add support for vectors old shape in ConstantShapeHelper::createShapeInfoWithNoUnitiesForReduce

Signed-off-by: Yurii <iuriish@yahoo.com>

* - correct cuda mirrorPad

Signed-off-by: Yurii <iuriish@yahoo.com>

* - add support for vectors old shape in cuda createShapeInfoWithNoUnitiesForReduce

Signed-off-by: Yurii <iuriish@yahoo.com>

Co-authored-by: raver119 <raver119@gmail.com>

* Add support for CUDA 11.0 (#492)

* Add support for CUDA 11.0

* libnd4j tweaks for CUDA 11

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* bindings update, again?

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* * Update versions of JavaCPP Presets for FFmpeg, OpenBLAS, and NumPy

* update API to match CUDA 8

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* * Update version of JavaCPP Presets for CPython

* C++ updated for cuDNN 8.0

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* one more test

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* one more test

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* one more test

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* 128-bit alignment for workspaces

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* change seed in 1 test

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* Fix dependecy duplication in python4j-parent pom

* Fix group id for in python4j-numpy

* few tests tweaked

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* Remove macosx-x86_64-gpu from nd4j-tests-tensorflow

* few minor tweaks for IndexReduce

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

* one test removed

Signed-off-by: raver119@gmail.com <raver119@gmail.com>

Co-authored-by: raver119@gmail.com <raver119@gmail.com>
Co-authored-by: Serhii Shepel <9946053+sshepel@users.noreply.github.com>

* RL4J: Add SyncTrainer and AgentLearnerBuilder for a few algorithms (#504)

Signed-off-by: Alexandre Boulanger <aboulang2002@yahoo.com>

Co-authored-by: Alexandre Boulanger <44292157+aboulang2002@users.noreply.github.com>
Co-authored-by: Yurii Shyrma <iuriish@yahoo.com>
Co-authored-by: raver119 <raver119@gmail.com>
Co-authored-by: Serhii Shepel <9946053+sshepel@users.noreply.github.com>
2020-07-26 21:59:27 +09:00
ch1010 5ff8d28b89 Close iter when reset to avoid resource not closed issue (#9035)
Signed-off-by: CH Kang <ch1010.developer@gmail.com>
2020-07-25 20:31:26 +09:00
Jeanne-Kamikaze 965d45e3a3 Fix doc. (#8905)
"By either a String *or a Path*"

Signed-off-by: Marc Sunet <msunet@shellblade.net>
2020-05-06 09:59:53 +02:00
Alex Black 092e6b9891 ImageRecordReader - NHWC support (#431)
* #8201 ImageRecordReader - NHWC support

Signed-off-by: Alex Black <blacka101@gmail.com>

* Check values - NCHW vs. NHWC

Signed-off-by: Alex Black <blacka101@gmail.com>
2020-05-04 14:25:19 +10:00
Alex Black 88d3c4867f Refactor packages to fix split package issues (#411)
* Refactor nd4j-common: org.nd4j.* -> org.nd4j.common.*

Signed-off-by: Alex Black <blacka101@gmail.com>

* Fix CUDA (missed nd4j-common package refactoring changes)

Signed-off-by: Alex Black <blacka101@gmail.com>

* nd4j-kryo: org.nd4j -> org.nd4j.kryo

Signed-off-by: Alex Black <blacka101@gmail.com>

* Fix nd4j-common for deeplearning4j-cuda

Signed-off-by: Alex Black <blacka101@gmail.com>

* nd4j-grppc-client: org.nd4j.graph -> org.nd4j.remote.grpc

Signed-off-by: Alex Black <blacka101@gmail.com>

* deeplearning4j-common: org.deeplearning4.* -> org.deeplearning4j.common.*

Signed-off-by: Alex Black <blacka101@gmail.com>

* deeplearning4j-core: org.deeplearning4j.* -> org.deeplearning.core.*

Signed-off-by: Alex Black <blacka101@gmail.com>

* deeplearning4j-cuda: org.deeplearning4j.nn.layers.* -> org.deeplearning4j.cuda.*

Signed-off-by: Alex Black <blacka101@gmail.com>

* Import fixes

Signed-off-by: Alex Black <blacka101@gmail.com>

* deeplearning4j-nlp-*: org.deeplearning4.text.* -> org.deeplearning4j.nlp.(language).*

Signed-off-by: Alex Black <blacka101@gmail.com>

* deeplearning4j-ui-model: org.deeplearning4j.ui -> org.deeplearning4j.ui.model

Signed-off-by: Alex Black <blacka101@gmail.com>

* datavec-spark-inference-{server/model/client}: org.datavec.spark.transform -> org.datavec.spark.inference.{server/model/client}

Signed-off-by: Alex Black <blacka101@gmail.com>

* datavec-jdbc: org.datavec.api -> org.datavec.jdbc

Signed-off-by: Alex Black <blacka101@gmail.com>

* Delete org.deeplearning4j.datasets.iterator.impl.MultiDataSetIteratorAdapter in favor of (essentially identical) org.nd4j.linalg.dataset.adapter.MultiDataSetIteratorAdapter

Signed-off-by: Alex Black <blacka101@gmail.com>

* ND4S fixes

Signed-off-by: Alex Black <blacka101@gmail.com>

* Fixes

Signed-off-by: Alex Black <blacka101@gmail.com>

* nd4j-common-tests: org.nd4j.* -> org.nd4j.common.tests

Signed-off-by: Alex Black <blacka101@gmail.com>

* Trigger CI

Signed-off-by: Alex Black <blacka101@gmail.com>

* Fixes

Signed-off-by: Alex Black <blacka101@gmail.com>

* #8878 Ignore CUDA tests on modules with 'nd4j-native under cuda' issue

Signed-off-by: Alex Black <blacka101@gmail.com>

* Fix bad imports in tests

Signed-off-by: Alex Black <blacka101@gmail.com>

* Add ignore on test (already failing) due to #8882

Signed-off-by: Alex Black <blacka101@gmail.com>

* Import fixes

Signed-off-by: Alex Black <blacka101@gmail.com>

* Additional import fixes

Signed-off-by: Alex Black <blacka101@gmail.com>
2020-04-29 11:19:26 +10:00
Paul Dubs b9d5f1645b Optimize LineRecordReader (#419)
* Move locations initialization for file input splits to initialize method
* Little optimization for schema detection regular expression

Signed-off-by: Paul Dubs <paul.dubs@gmail.com>
2020-04-28 10:38:31 +10:00
Alexander Stoyakin ccb216a3ed Fixing issues from Sonar report (#391)
* Fixing issues from Sonar report

* Proper logger of exceptions

* Coding style fixes

* Use dup parameter

* Cleanup, minor issues

* Cuda compilation fixed and some minor fixes
2020-04-23 08:36:49 +10:00
Alexander Stoyakin 455a5d112d Fixes for codegen generated classes and build improvements (#367)
* Input format extended

* Deleted redundant code

* Added weights format to conv2d config

* Refactoring

* dl4j base test functionality

* Different tests base class per module

* Check base class for dl4j-graph subproject tests

* Check if test classes extend BaseDL4JTest

* Use nd4j-common-tests as transient dependency

* Enums and tests added

* Added codegenerated methods

* Use namespace methods

* Replace DifferentialFunctionFactory  with codegenerated classes

* Fixed linspace

* Namespaces regenerated

* Namespaces used instead of factory

* Regenerated base classes

* Input format extended

* Added weights format to conv2d config

* Refactoring

* dl4j base test functionality

* Different tests base class per module

* Check base class for dl4j-graph subproject tests

* Check if test classes extend BaseDL4JTest

* Use nd4j-common-tests as transient dependency

* Enums and tests added

* Added codegenerated methods

* Use namespace methods

* Replace DifferentialFunctionFactory  with codegenerated classes

* Fixed linspace

* Namespaces regenerated

* Regenerated base classes

* Regenerated namespaces

* Generate nd4j namespaces

* INDArrays accepting constructors

* Generated some ops

* Some fixes

* SameDiff ops regenerated

* Regenerated nd4j ops

* externalErrors moved

* Compilation fixes

* SquaredDifference - strict number of args

* Deprecated code cleanup. Proper base class for tests.

* Extend test classes with BaseND4JTest

* Extend test classes with BaseDL4JTest

* Legacy code

* DL4J cleanup

* Exclude test utils from base class check

* Tests fixed

* Arbiter tests fix

* Test dependency scope fix + pom.xml formatting

Signed-off-by: Alex Black <blacka101@gmail.com>

* Significant number of fixes

Signed-off-by: Alex Black <blacka101@gmail.com>

* Another round of fixes

Signed-off-by: Alex Black <blacka101@gmail.com>

* Another round of fixes

Signed-off-by: Alex Black <blacka101@gmail.com>

* Few additional fixes

Signed-off-by: Alex Black <blacka101@gmail.com>

* DataVec missing test scope dependencies

Signed-off-by: Alex Black <blacka101@gmail.com>

Co-authored-by: Alex Black <blacka101@gmail.com>
2020-04-20 10:27:13 +10:00
Chris Bamford 1a35ebec2e RL4J: Add Backwardly Compatible Builder patterns (#326)
* Starting to switch configs of RL algorithms to use more fluent builder patterns. Many parameter choices in different algorithms default to SOTA and only be changed in specific cases

Signed-off-by: Bam4d <chris.bam4d@gmail.com>

* remove personal gpu-build file

Signed-off-by: Bam4d <chrisbam4d@gmail.com>

* refactored out configurations so they are heirarchical and re-usable, this is a step towards having a plug-and-play framework for different algorithms

* backwardly compatible configurations

* adding documentation to new configuration classes

Signed-off-by: Bam4d <chrisbam4d@gmail.com>

* private access modifiers are better suited here

Signed-off-by: Bam4d <chrisbam4d@gmail.com>

* RL4j does not compile without java 8 due to previous updates

fixing null pointers when listener arrays are empty

Signed-off-by: Bam4d <chrisbam4d@gmail.com>

* fixing copyright headers

Signed-off-by: Bam4d <chrisbam4d@gmail.com>

* uncomment logging line

Signed-off-by: Bam4d <chrisbam4d@gmail.com>

* fixing default value for learningUpdateFrequency

fixing test failure due to #352

Signed-off-by: Bam4d <chrisbam4d@gmail.com>

Co-authored-by: Bam4d <chris.bam4d@gmail.com>
2020-04-06 12:36:12 +09:00
Shams Ul Azeem 9c77bfa85f Support for more numpy datatypes (#241)
* Adding more datatypes support in datavec-python

* Using numpy C API for creating numpy arrays

* Adding parameterized tests

* Adding support for BFLOAT16 (by converting it to FLOAT)

* Cleanup

* Using casting instead of creating an array

* Giving out a warning while casting array from BFLOAT16 to FLOAT

* Add syncToPrimary and syncToSpecial methods to BaseDataBuffer

Signed-off-by: Alex Black <blacka101@gmail.com>

* Python exec: sync to host before passing pointers

Signed-off-by: Alex Black <blacka101@gmail.com>

* Added copyright header

* use np api (#267)

* python exec / numpy - check object type before cast (#268)

* use np api

* verify object before cast

* fix cong

* cuda fix

* inplace test + tiny fix

* more test

* fix double alloc

* rem tags

* fix cuda check

* Fix implicit CUDA dependency in datavec-python tests; remove new method, add test

Signed-off-by: Alex Black <blacka101@gmail.com>

Co-authored-by: Alex Black <blacka101@gmail.com>
Co-authored-by: Fariz Rahman <farizrahman4u@gmail.com>
2020-03-19 00:48:37 +11:00
Samuel Audet 58aa5a3a9b RL4J: Add TransformProcess, part 1 (#8711)
* Added TransformProcess, part 1

Signed-off-by: unknown <aboulang2002@yahoo.com>

* Renamed TemporalMergeTransform to HistoryMergeTransform

Signed-off-by: unknown <aboulang2002@yahoo.com>

* changed INDArrayHelper to use Nd4j.expandDims

Signed-off-by: Alexandre Boulanger <aboulang2002@yahoo.com>

* Adjusted copyrights

Signed-off-by: unknown <aboulang2002@yahoo.com>
2020-03-05 14:43:13 +09:00
Fariz Rahman f6b3032def Python executioner 2.0 (#134)
* wrapper

* builtins

* context mgr

* direct place

* ret all var

* call fix

* fix ndarray serde

* jobs

* try-with gil management

* cleanup

* exec tests passing

* list tests

* transforms test passing

* all pass

* headers

* dict fixes+test

* python path

* bool isinstance

* job tests

* nits

* transform fix+test

* transform tests

* leak fixes

* more mem leak fixes

* more fixes

* nits for adam

* PythonJob lombok builder

* checked exceptions

* more nits

* small leak fix

* more nits

* pythonexceptions

* fix jvm crash when bad python code

* Exception->PythonException

* Add support for boolean types in arrow records and ability to cast from float, double to int for TypeConversion (#178)

* nits for alex

* update tests

* fix test

* all pass

* refacc

* rem old code

* dtypes

* bytes working+exception pass through+cleanup (#209)

* more bytes tests

* header

* rem dummy test

* rem bad import

* alex nits + refacc

* Small error fixes (wrong type in msg) + minor formatting

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* use actual python type names (dictionary->dict, boolean->bool)

Co-authored-by: Shams Ul Azeem <shamsazeem20@gmail.com>
Co-authored-by: Alex Black <blacka101@gmail.com>
2020-02-04 20:23:59 +11:00
Alex Black 29104083cc Various fixes (#143)
* #8568 ArrayUtil optimization

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* #6171 Keras ReLU and ELU support

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Keras softmax layer import

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* #8549 Webjars dependency management

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Fix for TF import names ':0' suffix issue / NPE

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* BiasAdd: fix default data format for TF import

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Update zoo test ignores

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* #8509 SameDiff Listener API - provide frame + iteration

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* #8520 ND4J Environment

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Deconv3d

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Deconv3d fixes + gradient check

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Conv3d fixes + deconv3d DType test

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Fix issue with deconv3d gradinet check weight init

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* #8579 Fix BaseCudaDataBuffer constructor fix for UINT16

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* DataType.isNumerical() returns false for BOOL type

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* #8504 Reduce Spark log spam for tests

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Clean up DL4J gradient check test spam

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* More Gradient check spam reduction

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* SameDiff test spam reduction

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Fixes for FlatBuffers mapping

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* SameDiff log spam cleanup

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Tests should extend BaseNd4jTest

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Remove debug line in c++ op

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* ND4J test spam cleanup

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* DL4J test spam reduction

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* More Dl4J and datavec test spam cleanup

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Fix for bad conv3d test

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Additional test

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Embedding layers: don't inherit global default activation function

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Trigger CI

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Consolidate all BaseDL4JTest classes to single class used everywhere; make timeout configurable per class

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Test fixes and timeout increases

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Timeouts and PReLU fixes

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Restore libnd4j build threads arg for CUDA build

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Increase timeouts on a few tests to avoid spurious failures on some CI machines

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* More timeout fixes

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* More test timeout fixes

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Tweak timeout for one more test

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Final tweaks

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* One more ignore

Signed-off-by: AlexDBlack <blacka101@gmail.com>
2020-01-04 13:45:07 +11:00
Samuel Audet 5e07998e59 Add support for CUDA 10.2 (#89) 2019-11-29 16:31:03 +11:00
Alex Black 47d19908f4 Various fixes (#43)
* #8172 Enable DL4J MKLDNN batch norm backward pass

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* #8382 INDArray.toString() rank 1 brackets / ambiguity fix

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* #8308 Fix handful of broken links (inc. some in errors)

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Unused dependencies, round 1

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Unused dependencies, round 2

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Unused dependencies, round 3

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Small fix

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Uniform distribution TF import fix

Signed-off-by: AlexDBlack <blacka101@gmail.com>
2019-11-14 19:38:20 +11:00