{"action":"opened","issue":{"url":"https://api.github.com/repos/gigasquid/clojure-mxnet/issues/5","repository_url":"https://api.github.com/repos/gigasquid/clojure-mxnet","labels_url":"https://api.github.com/repos/gigasquid/clojure-mxnet/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/gigasquid/clojure-mxnet/issues/5/comments","events_url":"https://api.github.com/repos/gigasquid/clojure-mxnet/issues/5/events","html_url":"https://github.com/gigasquid/clojure-mxnet/issues/5","id":333099086,"node_id":"MDU6SXNzdWUzMzMwOTkwODY=","number":5,"title":"Test failing under Ubuntu 18.04 64bit","user":{"login":"whilo","id":2884416,"node_id":"MDQ6VXNlcjI4ODQ0MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/2884416?v=4","gravatar_id":"","url":"https://api.github.com/users/whilo","html_url":"https://github.com/whilo","followers_url":"https://api.github.com/users/whilo/followers","following_url":"https://api.github.com/users/whilo/following{/other_user}","gists_url":"https://api.github.com/users/whilo/gists{/gist_id}","starred_url":"https://api.github.com/users/whilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whilo/subscriptions","organizations_url":"https://api.github.com/users/whilo/orgs","repos_url":"https://api.github.com/users/whilo/repos","events_url":"https://api.github.com/users/whilo/events{/privacy}","received_events_url":"https://api.github.com/users/whilo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-17T22:45:39Z","updated_at":"2018-06-17T22:45:39Z","closed_at":null,"author_association":"NONE","body":"I have just tried the MNIST imclassification example, when I figured out that my model was not learning (accuracy stays at random). Running the tests yielded:\r\n\r\n~~~bash\r\nchristian@gramsci ~/D/clojure-mxnet> lein test\r\nINFO  MXNetJVM: Try loading mxnet-scala from native path.\r\nINFO  MXNetJVM: Try loading mxnet-scala-linux-x86_64-gpu from native path.\r\nINFO  MXNetJVM: Try loading mxnet-scala-linux-x86_64-cpu from native path.\r\nWARN  MXNetJVM: MXNet Scala native library not found in path. Copying native library from the archive. Consider installing the library somewhere in the path (for Windows: PATH, for Linux: LD_LIBRARY_PATH), or specifying by Java cmd option -Djava.library.path=[lib path].\r\nINFO  org.apache.mxnet.util.NativeLibraryLoader: Loading libmxnet-scala.so from /lib/native/ copying to mxnet-scala\r\n[00:38:47] src/io/iter_mnist.cc:113: MNISTIter: load 60000 images, shuffle=1, shape=[100,1,28,28]\r\n[00:38:47] src/io/iter_mnist.cc:113: MNISTIter: load 10000 images, shuffle=1, shape=[100,1,28,28]\r\nWARN  org.apache.mxnet.WarnIfNotDisposed: LEAK: [one-time warning] An instance of org.apache.mxnet.NDArray was not disposed. Set property mxnet.traceLeakedObjects to true to enable tracing\r\n\r\nlein test org.apache.clojure-mxnet.conv-test\r\nWARN  org.apache.mxnet.WarnIfNotDisposed: LEAK: [one-time warning] An instance of org.apache.mxnet.Symbol was not disposed. Set property mxnet.traceLeakedObjects to true to enable tracing\r\nEpoch  0  Train- [accuracy 0.09871667]\r\nEpoch  0  Time cost- 6805\r\nEpoch  0  Validation-  [accuracy 0.098]\r\nScore [accuracy 0.098]\r\n\r\nlein test :only org.apache.clojure-mxnet.conv-test/test-conv\r\n\r\nFAIL in (test-conv) (conv_test.clj:71)\r\nexpected: (< 0.92 (last score))\r\n  actual: (not (< 0.92 0.098))\r\n\r\nlein test org.apache.clojure-mxnet.executor-test\r\n\r\nlein test org.apache.clojure-mxnet.io-test\r\n[00:38:57] src/io/iter_mnist.cc:110: MNISTIter: load 60000 images, shuffle=1, shape=(100,784)\r\n[00:38:59] src/io/iter_mnist.cc:110: MNISTIter: load 60000 images, shuffle=1, shape=(100,784)\r\nWARN  org.apache.mxnet.WarnIfNotDisposed: LEAK: [one-time warning] An instance of org.apache.mxnet.Executor was not disposed. Set property mxnet.traceLeakedObjects to true to enable tracing\r\n[00:38:59] src/io/iter_image_recordio_2.cc:170: ImageRecordIOParser2: data/cifar/train.rec, use 1 threads for decoding..\r\n[00:39:02] src/io/iter_mnist.cc:110: MNISTIter: load 60000 images, shuffle=1, shape=(100,784)\r\n[00:39:03] src/io/iter_mnist.cc:110: MNISTIter: load 60000 images, shuffle=1, shape=(100,784)\r\n[00:39:05] src/io/iter_mnist.cc:110: MNISTIter: load 60000 images, shuffle=1, shape=(100,784)\r\n\r\nlein test org.apache.clojure-mxnet.kvstore-test\r\n\r\nlein test org.apache.clojure-mxnet.module-test\r\nINFO  org.apache.mxnet.module.Module: Saved checkpoint to test-0000.params\r\nINFO  org.apache.mxnet.module.Module: Saved optimizer state to test-0000.states\r\nINFO  org.apache.mxnet.Model: Auto - select kvstore type = local_update_cpu\r\n\r\nlein test :only org.apache.clojure-mxnet.module-test/test-module-reshape\r\n\r\nFAIL in (test-module-reshape) (module_test.clj:129)\r\nexpected: (every? (fn* [p1__4712#] (= -1.0 p1__4712#)) (-> (m/params mod) (first) (get \"fc_bias\") (ndarray/->vec)))\r\n  actual: (not (every? #object[org.apache.clojure_mxnet.module_test$fn__4714$fn__4719$fn__4720 0x51f009ef \"org.apache.clojure_mxnet.module_test$fn__4714$fn__4719$fn__4720@51f009ef\"] [0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0]))\r\nINFO  org.apache.mxnet.Model: Auto - select kvstore type = local_update_cpu\r\nINFO  org.apache.mxnet.module.Module: Saved checkpoint to test-0000.params\r\nINFO  org.apache.mxnet.module.Module: Saved optimizer state to test-0000.states\r\n\r\nlein test org.apache.clojure-mxnet.ndarray-test\r\n\r\nlein test :only org.apache.clojure-mxnet.ndarray-test/test-arrange\r\n\r\nERROR in (test-arrange) (Base.scala:131)\r\nexpected: (= [0.0 0.0 0.5 0.5 1.0 1.0 1.5 1.5 2.0 2.0 2.5 2.5 3.0 3.0 3.5 3.5 4.0 4.0 4.5 4.5] (->vec (ndarray/arange start stop {:step step, :repeat repeat})))\r\n[00:39:05] src/ndarray/./ndarray_function-inl.h:97: The operator onehot_encode is deprecated; use one_hot instead.\r\n  actual: org.apache.mxnet.MXNetError: [00:39:05] src/operator/tensor/./init_op.h:468: Check failed: param.step != 0 (0 vs. 0) Range does not support step=0, received 0\r\n\r\nStack trace returned 9 entries:\r\n[bt] (0) /tmp/mxnet3894755353450822729/mxnet-scala(dmlc::StackTrace[abi:cxx11]()+0x1bc) [0x7f8ddcc8299c]\r\n[bt] (1) /tmp/mxnet3894755353450822729/mxnet-scala(dmlc::LogMessageFatal::~LogMessageFatal()+0x28) [0x7f8ddcc83bb8]\r\n[bt] (2) /tmp/mxnet3894755353450822729/mxnet-scala(mxnet::op::RangeShape(nnvm::NodeAttrs const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> >*)+0x3fa) [0x7f8ddd82afda]\r\n[bt] (3) /tmp/mxnet3894755353450822729/mxnet-scala(mxnet::imperative::SetShapeType(mxnet::Context const&, nnvm::NodeAttrs const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, mxnet::DispatchMode*)+0xe11) [0x7f8ddf260671]\r\n[bt] (4) /tmp/mxnet3894755353450822729/mxnet-scala(mxnet::Imperative::Invoke(mxnet::Context const&, nnvm::NodeAttrs const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&)+0x35f) [0x7f8ddf2483ef]\r\n[bt] (5) /tmp/mxnet3894755353450822729/mxnet-scala(MXImperativeInvokeImpl(void*, int, void**, int*, void***, int, char const**, char const**)+0xe70) [0x7f8ddf6e1350]\r\n[bt] (6) /tmp/mxnet3894755353450822729/mxnet-scala(MXImperativeInvoke+0x4c) [0x7f8ddf6e27cc]\r\n[bt] (7) /tmp/mxnet3894755353450822729/mxnet-scala(Java_org_apache_mxnet_LibInfo_mxImperativeInvoke+0x40f) [0x7f8ddcc72e1f]\r\n[bt] (8) [0x7f8df05b1061]\r\n\r\n\r\n at org.apache.mxnet.Base$.checkCall (Base.scala:131)\r\n    org.apache.mxnet.NDArray$.genericNDArrayFunctionInvoke (NDArray.scala:97)\r\n    org.apache.mxnet.NDArray$.arange (NDArray.scala:408)\r\n    org.apache.mxnet.NDArray.arange (NDArray.scala:-1)\r\n    org.apache.clojure_mxnet.ndarray$arange.invokeStatic (ndarray.clj:91)\r\n    org.apache.clojure_mxnet.ndarray$arange.invoke (ndarray.clj:84)\r\n    org.apache.clojure_mxnet.ndarray_test$fn__4968.invokeStatic (ndarray_test.clj:131)\r\n    org.apache.clojure_mxnet.ndarray_test/fn (ndarray_test.clj:125)\r\n    clojure.test$test_var$fn__9209.invoke (test.clj:716)\r\n    clojure.test$test_var.invokeStatic (test.clj:716)\r\n    clojure.test$test_var.invoke (test.clj:707)\r\n    clojure.test$test_vars$fn__9235$fn__9240.invoke (test.clj:734)\r\n    clojure.test$default_fixture.invokeStatic (test.clj:686)\r\n    clojure.test$default_fixture.invoke (test.clj:682)\r\n    clojure.test$test_vars$fn__9235.invoke (test.clj:734)\r\n    clojure.test$default_fixture.invokeStatic (test.clj:686)\r\n    clojure.test$default_fixture.invoke (test.clj:682)\r\n    clojure.test$test_vars.invokeStatic (test.clj:730)\r\n    clojure.test$test_all_vars.invokeStatic (test.clj:736)\r\n    clojure.test$test_ns.invokeStatic (test.clj:757)\r\n    clojure.test$test_ns.invoke (test.clj:742)\r\n    user$eval233$fn__294.invoke (form-init8353745245477399979.clj:1)\r\n    clojure.lang.AFn.applyToHelper (AFn.java:156)\r\n    clojure.lang.AFn.applyTo (AFn.java:144)\r\n    clojure.core$apply.invokeStatic (core.clj:659)\r\n    clojure.core$apply.invoke (core.clj:652)\r\n    leiningen.core.injected$compose_hooks$fn__163.doInvoke (form-init8353745245477399979.clj:1)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n    clojure.core$apply.invokeStatic (core.clj:657)\r\n    clojure.core$apply.invoke (core.clj:652)\r\n    leiningen.core.injected$run_hooks.invokeStatic (form-init8353745245477399979.clj:1)\r\n    leiningen.core.injected$run_hooks.invoke (form-init8353745245477399979.clj:1)\r\n    leiningen.core.injected$prepare_for_hooks$fn__168$fn__169.doInvoke (form-init8353745245477399979.clj:1)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n    clojure.lang.AFunction$1.doInvoke (AFunction.java:29)\r\n    clojure.lang.RestFn.invoke (RestFn.java:408)\r\n    clojure.core$map$fn__5587.invoke (core.clj:2747)\r\n    clojure.lang.LazySeq.sval (LazySeq.java:40)\r\n    clojure.lang.LazySeq.seq (LazySeq.java:49)\r\n    clojure.lang.Cons.next (Cons.java:39)\r\n    clojure.lang.RT.next (RT.java:706)\r\n    clojure.core$next__5108.invokeStatic (core.clj:64)\r\n    clojure.core$reduce1.invokeStatic (core.clj:936)\r\n    clojure.core$reduce1.invokeStatic (core.clj:926)\r\n    clojure.core$merge_with.invokeStatic (core.clj:3051)\r\n    clojure.core$merge_with.doInvoke (core.clj:3043)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:139)\r\n    clojure.core$apply.invokeStatic (core.clj:659)\r\n    clojure.test$run_tests.invokeStatic (test.clj:767)\r\n    clojure.test$run_tests.doInvoke (test.clj:767)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n    clojure.core$apply.invokeStatic (core.clj:657)\r\n    clojure.core$apply.invoke (core.clj:652)\r\n    user$eval233$fn__306$fn__339.invoke (form-init8353745245477399979.clj:1)\r\n    user$eval233$fn__306$fn__307.invoke (form-init8353745245477399979.clj:1)\r\n    user$eval233$fn__306.invoke (form-init8353745245477399979.clj:1)\r\n    user$eval233.invokeStatic (form-init8353745245477399979.clj:1)\r\n    user$eval233.invoke (form-init8353745245477399979.clj:1)\r\n    clojure.lang.Compiler.eval (Compiler.java:7062)\r\n    clojure.lang.Compiler.eval (Compiler.java:7052)\r\n    clojure.lang.Compiler.load (Compiler.java:7514)\r\n    clojure.lang.Compiler.loadFile (Compiler.java:7452)\r\n    clojure.main$load_script.invokeStatic (main.clj:278)\r\n    clojure.main$init_opt.invokeStatic (main.clj:280)\r\n    clojure.main$init_opt.invoke (main.clj:280)\r\n    clojure.main$initialize.invokeStatic (main.clj:311)\r\n    clojure.main$null_opt.invokeStatic (main.clj:345)\r\n    clojure.main$null_opt.invoke (main.clj:342)\r\n    clojure.main$main.invokeStatic (main.clj:424)\r\n    clojure.main$main.doInvoke (main.clj:387)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n    clojure.lang.Var.applyTo (Var.java:702)\r\n    clojure.main.main (main.java:37)\r\n\r\nlein test org.apache.clojure-mxnet.operator-test\r\nWARN  org.apache.mxnet.WarnIfNotDisposed: LEAK: [one-time warning] An instance of org.apache.mxnet.KVStore was not disposed. Set property mxnet.traceLeakedObjects to true to enable tracing\r\nWARN  org.apache.mxnet.WarnIfNotDisposed: LEAK: [one-time warning] An instance of org.apache.mxnet.io.MXDataIter was not disposed. Set property mxnet.traceLeakedObjects to true to enable tracing\r\n\r\nlein test :only org.apache.clojure-mxnet.operator-test/test-symbol-pow\r\n\r\nFAIL in (test-symbol-pow) (operator_test.clj:162)\r\nexpected: (every? true? (map (fn [x y] (approx= tolerance x y)) expected grad-arrays))\r\n  actual: (not (every? #object[clojure.core$true_QMARK_ 0x7d4135c9 \"clojure.core$true_QMARK_@7d4135c9\"] (true false)))\r\nEmbedded symbol: {\r\n  \"nodes\": [\r\n    {\r\n      \"op\": \"null\", \r\n      \"name\": \"data\", \r\n      \"inputs\": []\r\n    }, \r\n    {\r\n      \"op\": \"null\", \r\n      \"name\": \"embed_weight\", \r\n      \"attrs\": {\r\n        \"input_dim\": \"10\", \r\n        \"output_dim\": \"4\"\r\n      }, \r\n      \"inputs\": []\r\n    }, \r\n    {\r\n      \"op\": \"Embedding\", \r\n      \"name\": \"embed\", \r\n      \"attrs\": {\r\n        \"input_dim\": \"10\", \r\n        \"output_dim\": \"4\"\r\n      }, \r\n      \"inputs\": [[0, 0, 0], [1, 0, 0]]\r\n    }\r\n  ], \r\n  \"arg_nodes\": [0, 1], \r\n  \"node_row_ptr\": [0, 1, 2, 3], \r\n  \"heads\": [[2, 0, 0]], \r\n  \"attrs\": {\"mxnet_version\": [\"int\", 10200]}\r\n}\r\n\r\nlein test org.apache.clojure-mxnet.optimizer-test\r\nTesting optimizer -  sgd\r\nTesting optimizer -  dcasgd\r\nTesting optimizer -  nag\r\nTesting optimizer -  ada-delta\r\nTesting optimizer -  rms-prop\r\nTesting optimizer -  ada-grad\r\nTesting optimizer -  adam\r\nTesting optimizer -  sgld\r\n\r\nlein test org.apache.clojure-mxnet.random-test\r\n\r\nlein test :only org.apache.clojure-mxnet.random-test/test-normal-on-cpu\r\n\r\nERROR in (test-normal-on-cpu) (Base.scala:131)\r\nexpected: (= ret1 ret2)\r\n  actual: org.apache.mxnet.MXNetError: [00:39:07] src/operator/random/./sample_op.h:297: Check failed: param.scale > 0 (0 vs. 0) scale parameter in gaussian has to be positive\r\n\r\nStack trace returned 10 entries:\r\n[bt] (0) /tmp/mxnet3894755353450822729/mxnet-scala(dmlc::StackTrace[abi:cxx11]()+0x1bc) [0x7f8ddcc8299c]\r\n[bt] (1) /tmp/mxnet3894755353450822729/mxnet-scala(dmlc::LogMessageFatal::~LogMessageFatal()+0x28) [0x7f8ddcc83bb8]\r\n[bt] (2) /tmp/mxnet3894755353450822729/mxnet-scala(mxnet::op::SampleMaster<mshadow::cpu, mxnet::op::NormalSampler<mshadow::cpu> >::op(nnvm::NodeAttrs const&, mxnet::OpContext const&, mxnet::OpReqType const&, mxnet::TBlob*)+0xe8) [0x7f8ddd1cc2e8]\r\n[bt] (3) /tmp/mxnet3894755353450822729/mxnet-scala(void mxnet::op::Sample_<mshadow::cpu, mxnet::op::NormalSampler<mshadow::cpu> >(nnvm::NodeAttrs const&, mxnet::OpContext const&, std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob> > const&, std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType> > const&, std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob> > const&)+0x8b) [0x7f8ddd1cd0fb]\r\n[bt] (4) /tmp/mxnet3894755353450822729/mxnet-scala(mxnet::imperative::PushFCompute(std::function<void (nnvm::NodeAttrs const&, mxnet::OpContext const&, std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob> > const&, std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType> > const&, std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob> > const&)> const&, nnvm::Op const*, nnvm::NodeAttrs const&, mxnet::Context const&, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var*> > const&, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var*> > const&, std::vector<mxnet::Resource, std::allocator<mxnet::Resource> > const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType> > const&)::{lambda(mxnet::RunContext)#1}::operator()(mxnet::RunContext) const+0x273) [0x7f8ddf265043]\r\n[bt] (5) /tmp/mxnet3894755353450822729/mxnet-scala(+0x2ecbbcb) [0x7f8ddf68ebcb]\r\n[bt] (6) /tmp/mxnet3894755353450822729/mxnet-scala(mxnet::engine::ThreadedEngine::ExecuteOprBlock(mxnet::RunContext, mxnet::engine::OprBlock*)+0xcb5) [0x7f8ddf688aa5]\r\n[bt] (7) /tmp/mxnet3894755353450822729/mxnet-scala(std::_Function_handler<void (std::shared_ptr<dmlc::ManualEvent>), mxnet::engine::ThreadedEnginePerDevice::PushToExecute(mxnet::engine::OprBlock*, bool)::{lambda()#1}::operator()() const::{lambda(std::shared_ptr<dmlc::ManualEvent>)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr<dmlc::ManualEvent>&&)+0xd9) [0x7f8ddf69b769]\r\n[bt] (8) /tmp/mxnet3894755353450822729/mxnet-scala(std::thread::_Impl<std::_Bind_simple<std::function<void (std::shared_ptr<dmlc::ManualEvent>)> (std::shared_ptr<dmlc::ManualEvent>)> >::_M_run()+0x4a) [0x7f8ddf69a7ca]\r\n[bt] (9) /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xbeae4) [0x7f8e046e5ae4]\r\n\r\n\r\n at org.apache.mxnet.Base$.checkCall (Base.scala:131)\r\n    org.apache.mxnet.NDArray.internal (NDArray.scala:935)\r\n    org.apache.mxnet.NDArray.toArray (NDArray.scala:928)\r\n    org.apache.mxnet.NDArray.equals (NDArray.scala:1009)\r\n    clojure.lang.Util.equiv (Util.java:33)\r\n    clojure.core$_EQ_.invokeStatic (core.clj:785)\r\n    clojure.core$_EQ_.invoke (core.clj:775)\r\n    clojure.lang.AFn.applyToHelper (AFn.java:156)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:132)\r\n    clojure.core$apply.invokeStatic (core.clj:657)\r\n    clojure.core$apply.invoke (core.clj:652)\r\n    org.apache.clojure_mxnet.random_test$fn__5947$fn__5951.invoke (random_test.clj:29)\r\n    org.apache.clojure_mxnet.random_test$fn__5947.invokeStatic (random_test.clj:29)\r\n    org.apache.clojure_mxnet.random_test/fn (random_test.clj:22)\r\n    clojure.test$test_var$fn__9209.invoke (test.clj:716)\r\n    clojure.test$test_var.invokeStatic (test.clj:716)\r\n    clojure.test$test_var.invoke (test.clj:707)\r\n    clojure.test$test_vars$fn__9235$fn__9240.invoke (test.clj:734)\r\n    clojure.test$default_fixture.invokeStatic (test.clj:686)\r\n    clojure.test$default_fixture.invoke (test.clj:682)\r\n    clojure.test$test_vars$fn__9235.invoke (test.clj:734)\r\n    clojure.test$default_fixture.invokeStatic (test.clj:686)\r\n    clojure.test$default_fixture.invoke (test.clj:682)\r\n    clojure.test$test_vars.invokeStatic (test.clj:730)\r\n    clojure.test$test_all_vars.invokeStatic (test.clj:736)\r\n    clojure.test$test_ns.invokeStatic (test.clj:757)\r\n    clojure.test$test_ns.invoke (test.clj:742)\r\n    user$eval233$fn__294.invoke (form-init8353745245477399979.clj:1)\r\n    clojure.lang.AFn.applyToHelper (AFn.java:156)\r\n    clojure.lang.AFn.applyTo (AFn.java:144)\r\n    clojure.core$apply.invokeStatic (core.clj:659)\r\n    clojure.core$apply.invoke (core.clj:652)\r\n    leiningen.core.injected$compose_hooks$fn__163.doInvoke (form-init8353745245477399979.clj:1)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n    clojure.core$apply.invokeStatic (core.clj:657)\r\n    clojure.core$apply.invoke (core.clj:652)\r\n    leiningen.core.injected$run_hooks.invokeStatic (form-init8353745245477399979.clj:1)\r\n    leiningen.core.injected$run_hooks.invoke (form-init8353745245477399979.clj:1)\r\n    leiningen.core.injected$prepare_for_hooks$fn__168$fn__169.doInvoke (form-init8353745245477399979.clj:1)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n    clojure.lang.AFunction$1.doInvoke (AFunction.java:29)\r\n    clojure.lang.RestFn.invoke (RestFn.java:408)\r\n    clojure.core$map$fn__5587.invoke (core.clj:2747)\r\n    clojure.lang.LazySeq.sval (LazySeq.java:40)\r\n    clojure.lang.LazySeq.seq (LazySeq.java:49)\r\n    clojure.lang.Cons.next (Cons.java:39)\r\n    clojure.lang.RT.next (RT.java:706)\r\n    clojure.core$next__5108.invokeStatic (core.clj:64)\r\n    clojure.core$reduce1.invokeStatic (core.clj:936)\r\n    clojure.core$reduce1.invokeStatic (core.clj:926)\r\n    clojure.core$merge_with.invokeStatic (core.clj:3051)\r\n    clojure.core$merge_with.doInvoke (core.clj:3043)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:139)\r\n    clojure.core$apply.invokeStatic (core.clj:659)\r\n    clojure.test$run_tests.invokeStatic (test.clj:767)\r\n    clojure.test$run_tests.doInvoke (test.clj:767)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n    clojure.core$apply.invokeStatic (core.clj:657)\r\n    clojure.core$apply.invoke (core.clj:652)\r\n    user$eval233$fn__306$fn__339.invoke (form-init8353745245477399979.clj:1)\r\n    user$eval233$fn__306$fn__307.invoke (form-init8353745245477399979.clj:1)\r\n    user$eval233$fn__306.invoke (form-init8353745245477399979.clj:1)\r\n    user$eval233.invokeStatic (form-init8353745245477399979.clj:1)\r\n    user$eval233.invoke (form-init8353745245477399979.clj:1)\r\n    clojure.lang.Compiler.eval (Compiler.java:7062)\r\n    clojure.lang.Compiler.eval (Compiler.java:7052)\r\n    clojure.lang.Compiler.load (Compiler.java:7514)\r\n    clojure.lang.Compiler.loadFile (Compiler.java:7452)\r\n    clojure.main$load_script.invokeStatic (main.clj:278)\r\n    clojure.main$init_opt.invokeStatic (main.clj:280)\r\n    clojure.main$init_opt.invoke (main.clj:280)\r\n    clojure.main$initialize.invokeStatic (main.clj:311)\r\n    clojure.main$null_opt.invokeStatic (main.clj:345)\r\n    clojure.main$null_opt.invoke (main.clj:342)\r\n    clojure.main$main.invokeStatic (main.clj:424)\r\n    clojure.main$main.doInvoke (main.clj:387)\r\n    clojure.lang.RestFn.applyTo (RestFn.java:137)\r\n    clojure.lang.Var.applyTo (Var.java:702)\r\n    clojure.main.main (main.java:37)\r\n\r\nlein test :only org.apache.clojure-mxnet.random-test/test-normal-on-cpu\r\n\r\nFAIL in (test-normal-on-cpu) (random_test.clj:35)\r\nexpected: (< (Math/abs (- mean mu)) 0.1)\r\n  actual: (not (< 9.878657910405863E31 0.1))\r\n\r\nlein test :only org.apache.clojure-mxnet.random-test/test-normal-on-cpu\r\n\r\nFAIL in (test-normal-on-cpu) (random_test.clj:36)\r\nexpected: (< (Math/abs (- stddev sigma)) 0.1)\r\n  actual: (not (< 9.670942343425893E33 0.1))\r\n\r\nlein test org.apache.clojure-mxnet.shape-test\r\n\r\nlein test org.apache.clojure-mxnet.symbol-test\r\nSymbol Outputs:\r\n\toutput[0]=composed(0)\r\nVariable:data\r\nVariable:fc1_weight\r\nVariable:fc1_bias\r\n--------------------\r\nOp:FullyConnected, Name=fc1\r\nInputs:\r\n\targ[0]=data(0) version=0\r\n\targ[1]=fc1_weight(0) version=0\r\n\targ[2]=fc1_bias(0) version=0\r\nAttrs:\r\n\tnum_hidden=10\r\nVariable:fc2_weight\r\nVariable:fc2_bias\r\n--------------------\r\nOp:FullyConnected, Name=fc2\r\nInputs:\r\n\targ[0]=fc1(0)\r\n\targ[1]=fc2_weight(0) version=0\r\n\targ[2]=fc2_bias(0) version=0\r\nAttrs:\r\n\tnum_hidden=100\r\nVariable:fc3_weight\r\nVariable:fc3_bias\r\n--------------------\r\nOp:FullyConnected, Name=fc3\r\nInputs:\r\n\targ[0]=fc2(0)\r\n\targ[1]=fc3_weight(0) version=0\r\n\targ[2]=fc3_bias(0) version=0\r\nAttrs:\r\n\tnum_hidden=10\r\n--------------------\r\nOp:Activation, Name=activation0\r\nInputs:\r\n\targ[0]=fc3(0)\r\nAttrs:\r\n\tact_type=relu\r\nVariable:fc4_weight\r\nVariable:fc4_bias\r\n--------------------\r\nOp:FullyConnected, Name=composed\r\nInputs:\r\n\targ[0]=activation0(0)\r\n\targ[1]=fc4_weight(0) version=0\r\n\targ[2]=fc4_bias(0) version=0\r\nAttrs:\r\n\tnum_hidden=20\r\n\r\n\r\nlein test org.apache.clojure-mxnet.test-util\r\n\r\nRan 131 tests containing 479 assertions.\r\n5 failures, 2 errors.\r\nINFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /tmp/mxnet3894755353450822729/mxnet-scala\r\nINFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /tmp/mxnet3894755353450822729\r\nTests failed.\r\n\r\n~~~\r\n\r\nAgain the fitting test for the convolutions does not work, besides the other errors. I have hand-compiled mxnet before, but have reverted to just load the library from the path, which works at least when constructing ndarrays and reading them. Any ideas what I am doing wrong?"}}
{"actor":{"display_login":"whilo"}}