You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by du...@apache.org on 2017/04/01 01:42:36 UTC

[3/7] incubator-systemml git commit: [SYSTEMML-1412] Rename `nn/test/tests.dml` to `nn/test/run_tests.dml`

[SYSTEMML-1412] Rename `nn/test/tests.dml` to `nn/test/run_tests.dml`

Closes #447.


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/7744924e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/7744924e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/7744924e

Branch: refs/heads/master
Commit: 7744924e96701e79573f5f839cac0c7bbe97554b
Parents: 16b1cbd
Author: Mike Dusenberry <mw...@us.ibm.com>
Authored: Fri Mar 31 18:38:56 2017 -0700
Committer: Mike Dusenberry <mw...@us.ibm.com>
Committed: Fri Mar 31 18:38:56 2017 -0700

----------------------------------------------------------------------
 .../staging/SystemML-NN/nn/test/run_tests.dml   | 85 ++++++++++++++++++++
 scripts/staging/SystemML-NN/nn/test/tests.dml   | 85 --------------------
 2 files changed, 85 insertions(+), 85 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/7744924e/scripts/staging/SystemML-NN/nn/test/run_tests.dml
----------------------------------------------------------------------
diff --git a/scripts/staging/SystemML-NN/nn/test/run_tests.dml b/scripts/staging/SystemML-NN/nn/test/run_tests.dml
new file mode 100644
index 0000000..86bb77b
--- /dev/null
+++ b/scripts/staging/SystemML-NN/nn/test/run_tests.dml
@@ -0,0 +1,85 @@
+#-------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#-------------------------------------------------------------
+
+/*
+ * Script to run tests.
+ */
+source("nn/test/grad_check.dml") as grad_check
+source("nn/test/test.dml") as test
+
+print("")
+print("Starting grad checks.")
+print("---")
+
+# Loss functions
+tmp = grad_check::cross_entropy_loss()
+tmp = grad_check::l1_loss()
+tmp = grad_check::l2_loss()
+tmp = grad_check::log_loss()
+
+# Other layers
+tmp = grad_check::affine()
+tmp = grad_check::batch_norm()
+tmp = grad_check::conv_simple()
+tmp = grad_check::conv()
+tmp = grad_check::conv_builtin()
+tmp = grad_check::dropout()
+tmp = grad_check::l1_reg()
+tmp = grad_check::l2_reg()
+tmp = grad_check::lstm()
+tmp = grad_check::max_pool_simple()
+tmp = grad_check::max_pool()
+tmp = grad_check::max_pool_builtin()
+tmp = grad_check::relu()
+tmp = grad_check::rnn()
+tmp = grad_check::sigmoid()
+tmp = grad_check::softmax()
+tmp = grad_check::spatial_batch_norm()
+tmp = grad_check::tanh()
+
+# Example model
+tmp = grad_check::two_layer_affine_l2_net()
+
+print("---")
+print("Grad checks complete -- look for any ERRORs or WARNINGs.")
+print("If any tests involving ReLUs failed, try a few times " +
+      "to ensure that they were not false negatives due to " +
+      "kinks being crossed.")
+print("")
+
+print("")
+print("Starting other tests.")
+print("---")
+
+tmp = test::batch_norm()
+tmp = test::im2col()
+tmp = test::padding()
+tmp = test::conv()
+tmp = test::cross_entropy_loss()
+tmp = test::max_pool()
+tmp = test::spatial_batch_norm()
+tmp = test::tanh()
+
+print("---")
+print("Other tests complete -- look for any ERRORs or WARNINGs.")
+print("")
+print("")
+

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/7744924e/scripts/staging/SystemML-NN/nn/test/tests.dml
----------------------------------------------------------------------
diff --git a/scripts/staging/SystemML-NN/nn/test/tests.dml b/scripts/staging/SystemML-NN/nn/test/tests.dml
deleted file mode 100644
index 86bb77b..0000000
--- a/scripts/staging/SystemML-NN/nn/test/tests.dml
+++ /dev/null
@@ -1,85 +0,0 @@
-#-------------------------------------------------------------
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#-------------------------------------------------------------
-
-/*
- * Script to run tests.
- */
-source("nn/test/grad_check.dml") as grad_check
-source("nn/test/test.dml") as test
-
-print("")
-print("Starting grad checks.")
-print("---")
-
-# Loss functions
-tmp = grad_check::cross_entropy_loss()
-tmp = grad_check::l1_loss()
-tmp = grad_check::l2_loss()
-tmp = grad_check::log_loss()
-
-# Other layers
-tmp = grad_check::affine()
-tmp = grad_check::batch_norm()
-tmp = grad_check::conv_simple()
-tmp = grad_check::conv()
-tmp = grad_check::conv_builtin()
-tmp = grad_check::dropout()
-tmp = grad_check::l1_reg()
-tmp = grad_check::l2_reg()
-tmp = grad_check::lstm()
-tmp = grad_check::max_pool_simple()
-tmp = grad_check::max_pool()
-tmp = grad_check::max_pool_builtin()
-tmp = grad_check::relu()
-tmp = grad_check::rnn()
-tmp = grad_check::sigmoid()
-tmp = grad_check::softmax()
-tmp = grad_check::spatial_batch_norm()
-tmp = grad_check::tanh()
-
-# Example model
-tmp = grad_check::two_layer_affine_l2_net()
-
-print("---")
-print("Grad checks complete -- look for any ERRORs or WARNINGs.")
-print("If any tests involving ReLUs failed, try a few times " +
-      "to ensure that they were not false negatives due to " +
-      "kinks being crossed.")
-print("")
-
-print("")
-print("Starting other tests.")
-print("---")
-
-tmp = test::batch_norm()
-tmp = test::im2col()
-tmp = test::padding()
-tmp = test::conv()
-tmp = test::cross_entropy_loss()
-tmp = test::max_pool()
-tmp = test::spatial_batch_norm()
-tmp = test::tanh()
-
-print("---")
-print("Other tests complete -- look for any ERRORs or WARNINGs.")
-print("")
-print("")
-