You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemds.apache.org by ma...@apache.org on 2021/09/11 18:47:50 UTC

[systemds] branch master updated (dadc901 -> 007b684)

This is an automated email from the ASF dual-hosted git repository.

markd pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/systemds.git.


    from dadc901  [SYSTEMDS-3018] Extended parameter server w/ nbatch update frequency
     new 77d1c60  [MINOR] Fixed typo in efficientNet.dml
     new 007b684  [MINOR] Bugfix batchnorm2d CUDA instruction (null pointer exception)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 scripts/nn/examples/efficientNet.dml                           |  2 +-
 .../sysds/runtime/instructions/gpu/context/GPUObject.java      | 10 +++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

[systemds] 02/02: [MINOR] Bugfix batchnorm2d CUDA instruction (null pointer exception)

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

markd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/systemds.git

commit 007b684a99090b178ec33d3c75f38f7ccaccf07a
Author: Mark Dokter <ma...@dokter.cc>
AuthorDate: Sun Aug 15 13:17:20 2021 +0200

    [MINOR] Bugfix batchnorm2d CUDA instruction (null pointer exception)
---
 .../sysds/runtime/instructions/gpu/context/GPUObject.java      | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sysds/runtime/instructions/gpu/context/GPUObject.java b/src/main/java/org/apache/sysds/runtime/instructions/gpu/context/GPUObject.java
index 1c1cb2b..efbf201 100644
--- a/src/main/java/org/apache/sysds/runtime/instructions/gpu/context/GPUObject.java
+++ b/src/main/java/org/apache/sysds/runtime/instructions/gpu/context/GPUObject.java
@@ -845,7 +845,8 @@ public class GPUObject {
 				copyToDevice = false;
 			} else if (block == null && tmp.getNonZeros() != 0) {
 				throw new DMLRuntimeException("Expected CP sparse block to be not null.");
-			} else {
+			}
+			else {
 				// CSR is the preferred format for cuSparse GEMM
 				// Converts MCSR and COO to CSR
 				SparseBlockCSR csrBlock = null;
@@ -880,8 +881,11 @@ public class GPUObject {
 				values = csrBlock.values();
 			}
 
-			if (values.length > tmp.getNonZeros())
-				allocateSparseMatrixOnDevice(values.length);
+			if (values != null)
+				if(values.length > tmp.getNonZeros())
+					allocateSparseMatrixOnDevice(values.length);
+				else
+					allocateSparseMatrixOnDevice();
 			else
 				allocateSparseMatrixOnDevice();
 

[systemds] 01/02: [MINOR] Fixed typo in efficientNet.dml

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

markd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/systemds.git

commit 77d1c6073178aff8c68ac4dabd8b2c125e73a153
Author: Mark Dokter <ma...@dokter.cc>
AuthorDate: Tue Aug 10 14:20:15 2021 +0200

    [MINOR] Fixed typo in efficientNet.dml
---
 scripts/nn/examples/efficientNet.dml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/nn/examples/efficientNet.dml b/scripts/nn/examples/efficientNet.dml
index 012eb33..da5862e 100644
--- a/scripts/nn/examples/efficientNet.dml
+++ b/scripts/nn/examples/efficientNet.dml
@@ -90,7 +90,7 @@ initNetwork = function(int InputChannels, int NumberOutputClasses, int seed)
   [Gamma_top, Beta_top, EmaMean_top, EmaVar_top] = batchnorm::init(1280)
   [DW_top, Db_top] = affine::init(1280, NumberOutputClasses, seed)
 
-    model = list(CW_stem, Cb_stem, Gamma_stem, Beta_stem, EmaMean_stem,vEmaVar_stem,
+    model = list(CW_stem, Cb_stem, Gamma_stem, Beta_stem, EmaMean_stem, EmaVar_stem,
       as.matrix(mb_parameters[1]),
       as.matrix(mb_parameters[2]),
       as.matrix(mb_parameters[3]),