You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by cm...@apache.org on 2018/08/16 01:13:55 UTC

[incubator-mxnet] branch more-clojure-tests updated (ac7e714 -> 41b9a26)

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

cmeier pushed a change to branch more-clojure-tests
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git.


    from ac7e714  re-enable deeper visualization graph example and add simple test
     new 8805ef7  running cljfmt
     new 41b9a26  add license - fix typo

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:
 .../examples/tutorial/src/tutorial/symbol.clj         |  1 -
 .../test/org/apache/clojure_mxnet/profiler_test.clj   |  1 -
 .../org/apache/clojure_mxnet/visualization_test.clj   | 19 ++++++++++++++++++-
 3 files changed, 18 insertions(+), 3 deletions(-)


[incubator-mxnet] 01/02: running cljfmt

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

cmeier pushed a commit to branch more-clojure-tests
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git

commit 8805ef7f02e98b266f608d4fb49f3c1826c1744a
Author: gigasquid <cm...@gigasquidsoftware.com>
AuthorDate: Wed Aug 15 21:08:16 2018 -0400

    running cljfmt
---
 contrib/clojure-package/examples/tutorial/src/tutorial/symbol.clj       | 1 -
 contrib/clojure-package/test/org/apache/clojure_mxnet/profiler_test.clj | 1 -
 2 files changed, 2 deletions(-)

diff --git a/contrib/clojure-package/examples/tutorial/src/tutorial/symbol.clj b/contrib/clojure-package/examples/tutorial/src/tutorial/symbol.clj
index 0dd0e4d..bec71de 100644
--- a/contrib/clojure-package/examples/tutorial/src/tutorial/symbol.clj
+++ b/contrib/clojure-package/examples/tutorial/src/tutorial/symbol.clj
@@ -50,7 +50,6 @@ net ;=> #object[org.apache.mxnet.Symbol 0x5c78c8c2 "org.apache.mxnet.Symbol@5c78
 (def b (sym/variable "b"))
 (def c (sym/+ a b))
 
-
 ;; Each symbol takes a (unique) string name. NDArray and Symbol both represent a single tensor. Operators represent the computation between tensors. Operators take symbol (or NDArray) as inputs and might also additionally accept other hyperparameters such as the number of hidden neurons (num_hidden) or the activation type (act_type) and produce the output.
 
 ;; We can view a symbol simply as a function taking several arguments. And we can retrieve those arguments with the following method call:
diff --git a/contrib/clojure-package/test/org/apache/clojure_mxnet/profiler_test.clj b/contrib/clojure-package/test/org/apache/clojure_mxnet/profiler_test.clj
index d45a993..f4b7434 100644
--- a/contrib/clojure-package/test/org/apache/clojure_mxnet/profiler_test.clj
+++ b/contrib/clojure-package/test/org/apache/clojure_mxnet/profiler_test.clj
@@ -19,7 +19,6 @@
   (:require [org.apache.clojure-mxnet.profiler :as profiler]
             [clojure.test :refer :all]))
 
-
 ;; Just excercising the interop
 
 (deftest test-profiler


[incubator-mxnet] 02/02: add license - fix typo

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

cmeier pushed a commit to branch more-clojure-tests
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git

commit 41b9a262e01f9e8a051d518424c185501c317202
Author: gigasquid <cm...@gigasquidsoftware.com>
AuthorDate: Wed Aug 15 21:11:38 2018 -0400

    add license - fix typo
---
 .../org/apache/clojure_mxnet/visualization_test.clj   | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/contrib/clojure-package/test/org/apache/clojure_mxnet/visualization_test.clj b/contrib/clojure-package/test/org/apache/clojure_mxnet/visualization_test.clj
index 945d74b..2332941 100644
--- a/contrib/clojure-package/test/org/apache/clojure_mxnet/visualization_test.clj
+++ b/contrib/clojure-package/test/org/apache/clojure_mxnet/visualization_test.clj
@@ -1,10 +1,27 @@
+;;
+;; 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.
+;;
+
 (ns org.apache.clojure-mxnet.visualization-test
   (:require [org.apache.clojure-mxnet.symbol :as sym]
             [org.apache.clojure-mxnet.visualization :as viz]
             [clojure.test :refer :all])
   (:import (org.apache.mxnet Visualization$Dot)))
 
-(defn test-plot-network
+(deftest test-plot-network
   (let [to-plot-sym (as-> (sym/variable "data") data
                       (sym/convolution "conv1" {:data data
                                                 :kernel [3 3]