autumnai / leaf-examples Goto Github PK
View Code? Open in Web Editor NEWExamples for the Hacker's Machine Learning Framework Leaf
Examples for the Hacker's Machine Learning Framework Leaf
Is there a way to save the current training progress to a file, and then resume from it?
I'm aware of the save and load function of Layer types, but I'm not sure how to use them in conjunction with Solver.
Hi,
I have problem compiling the examples. Here is the terminal output
~/P/leaf-examples$ cargo build --release --verbose
Fresh winapi-build v0.1.1
Fresh language-tags v0.0.7
Fresh libc v0.2.7
Fresh gcc v0.3.25
Fresh utf8-ranges v0.1.3
Fresh rustc-serialize v0.3.18
Fresh libc v0.1.12
Fresh byteorder v0.3.13
Fresh memchr v0.1.10
Fresh num_cpus v0.2.11
Fresh strsim v0.3.0
Fresh pkg-config v0.3.7
Fresh log v0.3.5
Fresh winapi v0.2.5
Fresh csv v0.14.3
Fresh aho-corasick v0.5.1
Fresh byteorder v0.4.2
Fresh typeable v0.1.2
Fresh hpack v0.2.0
Fresh matches v0.1.2
Fresh kernel32-sys v0.2.1
Fresh linear-map v0.0.4
Fresh bitflags v0.3.3
Fresh semver v0.1.20
Fresh regex-syntax v0.2.5
Fresh solicit v0.4.4
Fresh lazy_static v0.1.15
Fresh time v0.1.34
Fresh httparse v1.1.1
Fresh rustc_version v0.1.7
Fresh regex v0.1.55
Fresh openssl-sys v0.6.7
Fresh traitobject v0.0.1
Fresh rand v0.3.14
Fresh timeit v0.1.2
Fresh env_logger v0.3.2
Fresh docopt v0.6.78
Fresh openssl v0.6.7
Fresh uuid v0.1.18
Fresh num v0.1.31
Fresh url v0.2.38
Fresh enum_primitive v0.1.0
Fresh serde v0.6.15
Fresh rblas v0.0.11
Fresh unicase v1.3.0
Fresh cookie v0.1.21
Fresh collenchyma v0.0.8
Fresh mime v0.1.3
Fresh collenchyma-nn v0.3.4
Fresh collenchyma-blas v0.2.0
Fresh hyper v0.6.16
Fresh leaf v0.2.0
Compiling leaf-examples v0.1.0 (file:///home/yyc/P/leaf-examples)
Running `rustc src/main.rs --crate-name leaf_examples --crate-type bin -C opt-level=3 --cfg feature=\"collenchyma\" --cfg feature=\"native\" --cfg feature=\"leaf\" --cfg feature=\"default\" --out-dir /home/yyc/P/leaf-examples/target/release --emit=dep-info,link -L dependency=/home/yyc/P/leaf-examples/target/release -L dependency=/home/yyc/P/leaf-examples/target/release/deps --extern log=/home/yyc/P/leaf-examples/target/release/deps/liblog-0b1f2bad29d31333.rlib --extern hyper=/home/yyc/P/leaf-examples/target/release/deps/libhyper-2ba027f1404b8ddb.rlib --extern collenchyma=/home/yyc/P/leaf-examples/target/release/deps/libcollenchyma-9c720fde0214e273.rlib --extern env_logger=/home/yyc/P/leaf-examples/target/release/deps/libenv_logger-2fedde90a22290a6.rlib --extern rustc_serialize=/home/yyc/P/leaf-examples/target/release/deps/librustc_serialize-79a17eda1cd94e46.rlib --extern leaf=/home/yyc/P/leaf-examples/target/release/deps/libleaf-1941b6714b37cdd8.rlib --extern docopt=/home/yyc/P/leaf-examples/target/release/deps/libdocopt-eb02b06dca39e75f.rlib --extern csv=/home/yyc/P/leaf-examples/target/release/deps/libcsv-38833c6c563f720e.rlib -L native=/usr/lib/x86_64-linux-gnu -L native=/home/yyc/P/leaf-examples/target/release/build/openssl-sys-ccfba7b0e0a23a8e/out`
src/main.rs:21:5: 21:21 error: unresolved import `leaf::solver::*`. Could not find `solver` in `leaf` [E0432]
src/main.rs:21 use leaf::solver::*;
^~~~~~~~~~~~~~~~
src/main.rs:21:5: 21:21 help: run `rustc --explain E0432` to see a detailed explanation
error: aborting due to previous error
Could not compile `leaf-examples`.
Caused by:
Process didn't exit successfully: `rustc src/main.rs --crate-name leaf_examples --crate-type bin -C opt-level=3 --cfg feature="collenchyma" --cfg feature="native" --cfg feature="leaf" --cfg feature="default" --out-dir /home/yyc/P/leaf-examples/target/release --emit=dep-info,link -L dependency=/home/yyc/P/leaf-examples/target/release -L dependency=/home/yyc/P/leaf-examples/target/release/deps --extern log=/home/yyc/P/leaf-examples/target/release/deps/liblog-0b1f2bad29d31333.rlib --extern hyper=/home/yyc/P/leaf-examples/target/release/deps/libhyper-2ba027f1404b8ddb.rlib --extern collenchyma=/home/yyc/P/leaf-examples/target/release/deps/libcollenchyma-9c720fde0214e273.rlib --extern env_logger=/home/yyc/P/leaf-examples/target/release/deps/libenv_logger-2fedde90a22290a6.rlib --extern rustc_serialize=/home/yyc/P/leaf-examples/target/release/deps/librustc_serialize-79a17eda1cd94e46.rlib --extern leaf=/home/yyc/P/leaf-examples/target/release/deps/libleaf-1941b6714b37cdd8.rlib --extern docopt=/home/yyc/P/leaf-examples/target/release/deps/libdocopt-eb02b06dca39e75f.rlib --extern csv=/home/yyc/P/leaf-examples/target/release/deps/libcsv-38833c6c563f720e.rlib -L native=/usr/lib/x86_64-linux-gnu -L native=/home/yyc/P/leaf-examples/target/release/build/openssl-sys-ccfba7b0e0a23a8e/out` (exit code: 101)
and the TOML, where I just disabled CUDA and OpenCL
[package]
name = "leaf-examples"
description = "Examples for the Machine Learning Framework 'Leaf'"
version = "0.1.0"
authors = ["Michael Hirn <[email protected]>",
"Maximilian Goisser <[email protected]>"]
[dependencies]
# cuticula = "0.1.4"
leaf = { version = "0.2.0", default-features = false }
collenchyma = { version = "0.0.8", default-features = false }
csv = "0.14"
hyper = "0.6"
log = "0.3"
env_logger = "0.3"
# CLI tooling
docopt = "0.6.75"
rustc-serialize = "0.3"
clippy = { version = "0.0.23", optional = true }
[features]
default = ["native"]
native = ["leaf/native", "collenchyma/native"]
opencl = ["leaf/opencl", "collenchyma/opencl"]
cuda = ["leaf/cuda", "collenchyma/cuda"]
[profile.dev]
opt-level = 0
debug = true
rpath = false
lto = false
debug-assertions = true
codegen-units = 2
$ rustc --version
rustc 1.7.0 (a5d1e7a59 2016-02-29)
$ cargo --version
cargo 0.8.0-nightly (28a0cbb 2016-01-17)
Thanks for any hint
yy
After the first iteration NN output gets stuck at value 9:
leaf-examples$ cargo run --release -- mnist linear --batch-size 10
Running `target/release/leaf-examples mnist linear --batch-size 10`
Last sample: Prediction: 0, Target: 3 | Accuracy 1/10 = 10.00%
Last sample: Prediction: 9, Target: 4 | Accuracy 2/20 = 10.00%
Last sample: Prediction: 9, Target: 3 | Accuracy 3/30 = 10.00%
Last sample: Prediction: 9, Target: 1 | Accuracy 4/40 = 10.00%
Last sample: Prediction: 9, Target: 3 | Accuracy 7/50 = 14.00%
Last sample: Prediction: 9, Target: 4 | Accuracy 9/60 = 15.00%
Last sample: Prediction: 9, Target: 1 | Accuracy 9/70 = 12.86%
Last sample: Prediction: 9, Target: 9 | Accuracy 10/80 = 12.50%
Last sample: Prediction: 9, Target: 6 | Accuracy 11/90 = 12.22%
Last sample: Prediction: 9, Target: 5 | Accuracy 11/100 = 11.00%
Last sample: Prediction: 9, Target: 9 | Accuracy 12/110 = 10.91%
Last sample: Prediction: 9, Target: 2 | Accuracy 13/120 = 10.83%
Last sample: Prediction: 9, Target: 3 | Accuracy 13/130 = 10.00%
Last sample: Prediction: 9, Target: 7 | Accuracy 14/140 = 10.00%
Last sample: Prediction: 9, Target: 4 | Accuracy 14/150 = 9.33%
This happens nearly always and output is invariably 9 (excluding first iteration). If second process is started while first is still running, then second NN learns and in all 3 models reaches about 90% accuracy. Actually, first process may be example/benchmark from main leaf repo or some other program that heavily uses CUDA. I've tried various combinations, and it looks like that things that matters are: 1) it should allocate sizable memory chunk, 2) it should overwrite it with something. It doesn't matter if the first program is running or in stopped state.
This behavior can be explained if memory where coefficients are stored isn't initialized by leaf with small random values and just contains junk left from other programs. If the junk is good enough, NN learns, but suboptimally. If it's not, it's stuck. Next time program gets the same memory, so if it's stuck, then it's stuck for good. But it would be a security hole if CUDA doesn't zero memory allocations, so my guess may be completely wrong.
Here is my setup:
I guess I'll try to code some small simple NN at the weekend and check coefficients at different computation stages.
Edit: formatting
I'm trying to build the binary cargo build --release
but I get the following error:
note: "cc" "-Wl,--as-needed" "-m64" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/murtaza/Desktop/leaf-examples/target/release/leaf_examples.0.o" "-o" "/home/murtaza/Desktop/leaf-examples/target/release/leaf_examples" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/murtaza/Desktop/leaf-examples/target/release" "-L" "/home/murtaza/Desktop/leaf-examples/target/release/deps" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/home/murtaza/Desktop/leaf-examples/target/release/build/openssl-sys-ccfba7b0e0a23a8e/out" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libdocopt-eb02b06dca39e75f.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libhyper-2ba027f1404b8ddb.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libsolicit-8632432b3a4330d6.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libhttparse-5c82294627258d33.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libhpack-8f91a695370f3d75.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libstrsim-fa50309ddd5f7139.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblanguage_tags-668f109940a16d3d.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libnum_cpus-e273cfbbb0ba5cac.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libtraitobject-4ea485452a3a4a0b.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libenv_logger-2fedde90a22290a6.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libregex-ea979451af017568.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libaho_corasick-eea45523c8483aac.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libutf8_ranges-afda04de2a52d0c6.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcsv-38833c6c563f720e.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libmime-b95e634e9256396c.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcookie-14f7332b9f1085f4.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libopenssl-4082d291dfec4f37.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libopenssl_sys-ccfba7b0e0a23a8e.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblibc-dd3420cb049117bb.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libserde-199a888172a9cdd1.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libtypeable-7ddee84661471c9b.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libmemchr-545f7c18e4fb5174.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liburl-3f8ca9274c8ba747.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libuuid-fed17b74aa7673e2.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libmatches-737aa40e66529b02.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libleaf-1941b6714b37cdd8.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcollenchyma_nn-f77eb8f370d7400a.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblog-0b1f2bad29d31333.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcudnn-854d347fd7afab90.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libtimeit-32b1006bf5998cae.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libtime-22c21fe32894ddad.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcudnn_sys-9f4c28c0b836a8f7.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcollenchyma_blas-a8b9d5dd0a4541d1.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcollenchyma-9c720fde0214e273.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libenum_primitive-2dc0d7f5a40461af.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/librblas-f688441f4b40cb58.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libbitflags-646076c1f4684754.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libnum-d3b232b2ec3de579.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/librand-6fab17fc670a2bc8.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/librustc_serialize-79a17eda1cd94e46.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcublas-75b68f8b15390ba0.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libbyteorder-bff578a6925be5fe.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblinear_map-9d19437a952d430c.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libregex_syntax-46f1c6091c03f7ce.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblazy_static-007034d2ad8108ce.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcublas_sys-c067fced6fd7f628.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblibc-c862fb1c783dd674.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libbyteorder-3945c3ad3e0e1d9c.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libunicase-6994b2722f6a1cd7.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_unicode-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-6a154fe0.rlib" "-l" "ssl" "-l" "crypto" "-l" "c" "-l" "m" "-l" "cudnn" "-l" "OpenCL" "-l" "OpenCL" "-l" "cuda" "-l" "blas" "-l" "cublas" "-l" "cublas" "-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "compiler-rt"
I was hoping to try out the available Leaf examples but I wasn't able to get the CLI to compile.
When I ran cargo build
, several thousand errors all related to clippy
killed the compile (truncated below). I'm guessing it's because I installed the nightly
build of Rust (1.9.0-nightly (7b0b80ae2 2016-03-02)
) and the old version of clippy
isn't compatible with it:
➜ leaf-examples git:(master) cargo build
Compiling gcc v0.3.19
Compiling regex-syntax v0.2.2
Compiling modifier v0.1.0
Compiling unicase v1.0.1
Compiling bitflags v0.3.2
Compiling winapi v0.2.5
Compiling glob v0.2.10
Compiling clippy v0.0.23
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:8:5: 8:28 error: a type named `Node` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:8 use rustc::front::map::Node;
^~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:8:5: 8:28 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:5:5: 5:20 note: previous import of `Node` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:5 use rustc::lint::*;
^~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `Local` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `Local` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `TyParam` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `TyParam` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `Mod` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `Mod` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `ForeignMod` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `ForeignMod` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `PrimTy` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `PrimTy` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `Variant` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `Variant` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:3:5: 3:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:3 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:3:5: 3:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:2:5: 2:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:2 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:2:5: 2:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:1:5: 1:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:1 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:3:5: 3:23 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:3 use syntax::ast::Ident;
^~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:3:5: 3:23 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:4:5: 4:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:4 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:4:5: 4:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:3:5: 3:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:3 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:3:5: 3:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:3 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:3:5: 3:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:5:5: 5:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:5 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:5:5: 5:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:4:5: 4:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:4 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:3:5: 3:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:3 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:3:5: 3:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:3:5: 3:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:3 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:3:5: 3:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lib.rs:20:5: 20:28 error: unresolved import `rustc::plugin::Registry`. Could not find `plugin` in `rustc` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lib.rs:20 use rustc::plugin::Registry;
^~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lib.rs:20:5: 20:28 help: run `rustc --explain E0432` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:7:5: 7:31 error: unresolved import `rustc_front::visit::FnKind`. Could not find `visit` in `rustc_front` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:7 use rustc_front::visit::FnKind;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:7:5: 7:31 help: run `rustc --explain E0432` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/open_options.rs:5:5: 5:31 error: unresolved import `syntax::ast::Lit_::LitBool`. Could not find `Lit_` in `syntax::ast` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/open_options.rs:5 use syntax::ast::Lit_::LitBool;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/open_options.rs:5:5: 5:31 help: run `rustc --explain E0432` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2:26: 2:35 error: unresolved import `rustc::middle::def::DefStruct`. There is no `DefStruct` in `rustc::middle::def` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2 use rustc::middle::def::{DefStruct, DefVariant};
^~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2:26: 2:35 help: run `rustc --explain E0432` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2:37: 2:47 error: unresolved import `rustc::middle::def::DefVariant`. There is no `DefVariant` in `rustc::middle::def` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2 use rustc::middle::def::{DefStruct, DefVariant};
^~~~~~~~~~
....
^~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:32:22: 32:31 error: `DefStruct` is not an enum variant, struct or const [E0418]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:32 Some(DefStruct(..)) |
^~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:33:22: 33:32 error: `DefVariant` is not an enum variant, struct or const [E0418]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:33 Some(DefVariant(..)) => {
^~~~~~~~~~
Compiling url v0.2.37
error: cannot continue compilation due to previous error
Build failed, waiting for other jobs to finish...
Could not compile `clippy`.
It looks like the cuticula
and phloem
libraries are using version 0.0.23
of clippy but the most recent version of clippy is 0.0.45
. Also, it looks like you guys deprecated phloem
.
Am I doing something wrong here or does this repo just need to be cleaned of bit rot (happy to work on it)?
I'm running the latest OSX with CUDA and cudnn installed.
I have to use the git repo of collenchyma
as dependency because the latest version includes a fix for linking OpenCL on OS X. Rest of the configuration is default.
When I run cargo build
, I get the following errors:
Compiling leaf-examples v0.1.0 (file:///Users/arsalanahmad/Code/rust/leaf-examples)
src/main.rs:166:22: 166:41 error: the trait `collenchyma::backend::IBackend` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:41 error: the trait `coblas::plugin::Gemm<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:41 error: the trait `collenchyma_nn::plugin::Sigmoid<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:41 error: the trait `collenchyma_nn::plugin::SigmoidPointwise<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:41 error: the trait `collenchyma_nn::plugin::Relu<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:41 error: the trait `collenchyma_nn::plugin::ReluPointwise<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:41 error: the trait `collenchyma_nn::plugin::Convolution<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:41 error: the trait `collenchyma_nn::plugin::Softmax<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:41 error: the trait `collenchyma_nn::plugin::LogSoftmax<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:41 error: the trait `collenchyma_nn::plugin::Pooling<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:41 note: required by `leaf::solver::Solver<SolverB, B>::from_config`
src/main.rs:166:22: 166:88 error: the trait `collenchyma::backend::IBackend` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:88 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:88 note: required by `leaf::solver::Solver`
src/main.rs:166:22: 166:88 error: the trait `coblas::plugin::Copy<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:88 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:88 note: required by `leaf::solver::Solver`
src/main.rs:166:22: 166:88 error: the trait `coblas::plugin::Dot<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:88 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:88 note: required by `leaf::solver::Solver`
src/main.rs:166:22: 166:88 error: the trait `coblas::plugin::Axpy<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:88 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:88 note: required by `leaf::solver::Solver`
src/main.rs:166:22: 166:88 error: the trait `coblas::plugin::Scal<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:166 let mut solver = Solver::from_config(backend.clone(), backend.clone(), &solver_cfg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:166:22: 166:88 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:166:22: 166:88 note: required by `leaf::solver::Solver`
src/main.rs:185:32: 185:40 error: mismatched types:
expected `&mut collenchyma::tensor::SharedTensor<f32>`,
found `&mut std::sync::rwlock::RwLockWriteGuard<'_, co::tensor::SharedTensor<f32>>`
(expected struct `collenchyma::tensor::SharedTensor`,
found struct `std::sync::rwlock::RwLockWriteGuard`) [E0308]
src/main.rs:185 write_batch_sample(&mut inp, &input, batch_n);
^~~~~~~~
src/main.rs:185:32: 185:40 help: run `rustc --explain E0308` to see a detailed explanation
src/main.rs:186:32: 186:42 error: mismatched types:
expected `&mut collenchyma::tensor::SharedTensor<f32>`,
found `&mut std::sync::rwlock::RwLockWriteGuard<'_, co::tensor::SharedTensor<f32>>`
(expected struct `collenchyma::tensor::SharedTensor`,
found struct `std::sync::rwlock::RwLockWriteGuard`) [E0308]
src/main.rs:186 write_batch_sample(&mut label, &[label_val], batch_n);
^~~~~~~~~~
src/main.rs:186:32: 186:42 help: run `rustc --explain E0308` to see a detailed explanation
src/main.rs:191:34: 191:87 warning: the trait `collenchyma::backend::IBackend` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `coblas::plugin::Copy<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `coblas::plugin::Dot<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `coblas::plugin::Gemm<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `collenchyma_nn::plugin::Sigmoid<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `collenchyma_nn::plugin::SigmoidPointwise<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `collenchyma_nn::plugin::Relu<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `collenchyma_nn::plugin::ReluPointwise<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `collenchyma_nn::plugin::Convolution<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `collenchyma_nn::plugin::Softmax<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `collenchyma_nn::plugin::LogSoftmax<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `collenchyma_nn::plugin::Pooling<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `coblas::plugin::Axpy<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:34: 191:87 warning: the trait `coblas::plugin::Scal<f32>` is not implemented for the type `co::backend::Backend<co::frameworks::cuda::Cuda>` [E0277]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:191:34: 191:87 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:191:34: 191:87 note: required by `leaf::solver::Solver`
src/main.rs:191:50: 191:66 error: mismatched types:
expected `alloc::arc::Arc<std::sync::rwlock::RwLock<collenchyma::tensor::SharedTensor<f32>>>`,
found `alloc::arc::Arc<std::sync::rwlock::RwLock<co::tensor::SharedTensor<f32>>>`
(expected struct `collenchyma::tensor::SharedTensor`,
found struct `co::tensor::SharedTensor`) [E0308]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~
src/main.rs:191:50: 191:66 help: run `rustc --explain E0308` to see a detailed explanation
src/main.rs:191:68: 191:86 error: mismatched types:
expected `alloc::arc::Arc<std::sync::rwlock::RwLock<collenchyma::tensor::SharedTensor<f32>>>`,
found `alloc::arc::Arc<std::sync::rwlock::RwLock<co::tensor::SharedTensor<f32>>>`
(expected struct `collenchyma::tensor::SharedTensor`,
found struct `co::tensor::SharedTensor`) [E0308]
src/main.rs:191 let infered_out = solver.train_minibatch(inp_lock.clone(), label_lock.clone());
^~~~~~~~~~~~~~~~~~
src/main.rs:191:68: 191:86 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to 19 previous errors
Could not compile `leaf-examples`.
What could be wrong?
expected `collections::vec::Vec<usize>`,
found `collections::vec::Vec<isize>`
(expected usize,
found isize) [E0308]
/Users/sven/.cargo/registry/src/github.com-0a35038f75765ae4/cuticula-0.1.2/src/transformer.rs:15 let mut blob = Box::new(Blob::of_shape(shape));
^~~~~
/Users/sven/.cargo/registry/src/github.com-0a35038f75765ae4/cuticula-0.1.2/src/transformer.rs:15:48: 15:53 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to previous error
Could not compile `cuticula`.
In the toml I set:
[dependencies]
leaf = { version = "0.2.0", default-features = false }
[features]
default = ["native"
native = ["leaf/native"]
However the compilation is failing.
Compiling collenchyma-nn v0.3.4
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:19:5: 28:6 error: non-exhaustive patterns: `&mut OpenCL(_)` not covered [E0004]
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:19 match mem {
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:20 &mut MemoryType::Native(ref mut mem) => {
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:21 let mut mem_buffer = mem.as_mut_slice::<T::Item>();
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:22 for (index, datum) in data.enumerate() {
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:23 mem_buffer[index] = datum;
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:24 }
...
/home/fuego/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.3.4/src/frameworks/native/helper.rs:19:5: 28:6 help: run `rustc --explain E0004` to see a detailed explanation
error: aborting due to previous error
Could not compile `collenchyma-nn`.
Is this not supported?
Emm actualy i just wont find laters blog and laters post from my beach girl..that girl lying all my life..n have secret man haha...fuck this girl..
Hi,
I'm trying to compile the examples but i get this error with rust nightly
Compiling openssl v0.6.7
Compiling cookie v0.1.21
Compiling leaf v0.2.0
error[E0428]: a macro named `impl_ops_sigmoid_for` has already been defined in this module
error[E0428]: a macro named `impl_ops_relu_for` has already been defined in this module
error[E0428]: a macro named `impl_ops_tanh_for` has already been defined in this module
error[E0428]: a macro named `impl_ops_convolution_for` has already been defined in this module
error[E0428]: a macro named `impl_ops_softmax_for` has already been defined in this module
error[E0428]: a macro named `impl_ops_log_softmax_for` has already been defined in this module
error[E0428]: a macro named `impl_ops_lrn_for` has already been defined in this module
error[E0428]: a macro named `impl_ops_pooling_for` has already been defined in this module
error: aborting due to 8 previous errors
Build failed, waiting for other jobs to finish...
error: Could not compile `leaf`.
To learn more, run the command again with --verbose.
With rust stable it is even worse
leaf-examples git:(master) ✗ cargo build --release
Compiling semver v0.1.20
Compiling bitflags v0.3.3
Compiling strsim v0.3.0
Compiling winapi-build v0.1.1
Compiling byteorder v0.3.13
Compiling linear-map v0.0.4
Compiling pkg-config v0.3.7
Compiling winapi v0.2.5
error: internal compiler error: unexpected panic
error: internal compiler error: unexpected panic
error: internal compiler error: unexpected panic
error: internal compiler error: unexpected panic
error: internal compiler error: unexpected panic
error: internal compiler error: unexpected panic
Any idea of what might be ? I just got the sources and i'm trying to compile on Mac OS X Sierra.
When trying to compile the example it error out with message:
cargo build --release
Compiling leaf v0.2.1 (file:///home/hsaputra/open/github/leaf)
Build failed, waiting for other jobs to finish...
failed to run custom build command for `leaf v0.2.1 (file:///home/hsaputra/open/github/leaf)`
Process didn't exit successfully: `/home/hsaputra/open/github/leaf/target/release/build/leaf-db74caf1e49d43ed/build-script-build` (exit code: 101)
--- stderr
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: Failed, description: "Error while trying to execute `capnp compile`: Failed: No such file or directory (os error 2). Please verify that version 0.5.2 or higher of the capnp executable is installed on your system. See https://capnproto.org/install.html" }', ../src/libcore/result.rs:741
Following install instructions and resulting with libcudnn missing on el capitan.
I'm running Arch Linux, with CUDA 8.0, installed to CUDNN_LIB_DIR=/opt/cuda/lib64
, which is an environment variable I set so rust-cudnn
could build. When I run cargo build --release
, all packages compile except leaf-examples
, which fails with:
cudnn.cgu-0.rs:(.text._ZN5cudnn22convolution_descriptor21ConvolutionDescriptor3new17hd52d835ac171c334E+0x2c5): undefined reference to 'cudnnSetConvolutionNdDescriptor_v3'
Here's the complete stack trace:
Compiling leaf-examples v0.1.0 (file:///home/brian/src/LEAF/leaf-examples)
Running `rustc --crate-name leaf_examples src/main.rs --crate-type bin -C opt-level=3 --cfg feature=\"collenchyma\" --cfg feature=\"cuda\" --cfg feature=\"opencl\" --cfg feature=\"leaf\" --cfg feature=\"native\" --cfg feature=\"default\" -C metadata=ae5ef3f9c6bfe84b -C extra-filename=-ae5ef3f9c6bfe84b --out-dir /home/brian/src/LEAF/leaf-examples/target/release/deps --emit=dep-info,link -L dependency=/home/brian/src/LEAF/leaf-examples/target/release/deps --extern env_logger=/home/brian/src/LEAF/leaf-examples/target/release/deps/libenv_logger-898336b63180939c.rlib --extern log=/home/brian/src/LEAF/leaf-examples/target/release/deps/liblog-45992a9fecd52540.rlib --extern docopt=/home/brian/src/LEAF/leaf-examples/target/release/deps/libdocopt-6acf94c652da5da9.rlib --extern hyper=/home/brian/src/LEAF/leaf-examples/target/release/deps/libhyper-2876fae34ddaaae3.rlib --extern csv=/home/brian/src/LEAF/leaf-examples/target/release/deps/libcsv-fa7c7e68b69d8e3d.rlib --extern collenchyma=/home/brian/src/LEAF/leaf-examples/target/release/deps/libcollenchyma-14110c1f55835827.rlib --extern rustc_serialize=/home/brian/src/LEAF/leaf-examples/target/release/deps/librustc_serialize-caafd732392a084b.rlib --extern leaf=/home/brian/src/LEAF/leaf-examples/target/release/deps/libleaf-63d30561567bf472.rlib -L native=/usr/lib -L native=/home/brian/src/LEAF/leaf-examples/target/release/build/openssl-sys-5caadec7e6f1f6b8/out -L native=/opt/cuda/lib64`
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/leaf_examples-ae5ef3f9c6bfe84b.0.o" "-o" "/home/brian/src/LEAF/leaf-examples/target/release/deps/leaf_examples-ae5ef3f9c6bfe84b" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/brian/src/LEAF/leaf-examples/target/release/deps" "-L" "/usr/lib" "-L" "/home/brian/src/LEAF/leaf-examples/target/release/build/openssl-sys-5caadec7e6f1f6b8/out" "-L" "/opt/cuda/lib64" "-L" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libleaf-63d30561567bf472.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libcollenchyma_blas-ec053a0bbe0fbf70.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libhyper-2876fae34ddaaae3.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libhttparse-f04252c6a6e5d4c6.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libunicase-a284c14c101e6107.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libenv_logger-898336b63180939c.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libcookie-2f796acb767bdb3c.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libopenssl-68dc63589bfa90ad.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libsolicit-d8e6830b07855294.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libhpack-e4ba59af8835f1f6.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libcollenchyma_nn-a6aeb3e4cbdb124e.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libcudnn-ff85c95eebc4ea5c.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libcudnn_sys-80cfb69383b3b7fd.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libcsv-fa7c7e68b69d8e3d.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libbyteorder-97f20359cc6ae7fe.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libopenssl_sys-31d816d6bf55d6fc.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libtypeable-f0ed0017e3fcca89.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libtraitobject-a1d2a583fb41ef5d.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libmime-dfc320e8b2335a58.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libserde-d321cb2b6f9f6141.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/liblog-45992a9fecd52540.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libcollenchyma-14110c1f55835827.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/liblinear_map-46676a48d9ffd41b.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libbyteorder-3f7dc7cdfc06d203.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/liblazy_static-809e8878608ba913.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libenum_primitive-48f81948729dc16d.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libbitflags-1755d85512daa2be.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libcublas-9f2db1748a12c4b5.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libcublas_sys-9e1e79942fc97df8.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libdocopt-6acf94c652da5da9.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libstrsim-869774ecf05f23a6.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libregex-c570712e9d025d01.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libregex_syntax-cbacc108f12333b2.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libaho_corasick-f4e044fd39863840.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libmemchr-6eaa2ac287ea4899.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libutf8_ranges-eee6e01646fa8d92.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/liburl-5a603dce7660e966.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libmatches-a2b873ec0933e1a1.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libuuid-838adb6564344aa1.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/liblibc-020680db6d48b4b8.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libnum_cpus-b89916b657cc137c.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/liblanguage_tags-5e73368b30fd717a.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libtimeit-16fc94022225b588.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libtime-7575bceadb0fc3ef.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/librblas-cba47c817245deff.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/libnum-29f1cfb2cad99f27.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/librand-a0b7947e73251f01.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/librustc_serialize-caafd732392a084b.rlib" "/home/brian/src/LEAF/leaf-examples/target/release/deps/liblibc-70a837b016065202.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2ddb28df747fcb8c.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-21709492a058d9ce.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e19aa6725ab01bfd.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-99ff2e008613b591.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-e2513aecb8fbb70c.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f3200ab7e7fe644c.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-e83ac2302b5439a3.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-dba58b8da674d203.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_unicode-6d4348bcabf40a71.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-9f45c45fdcba4301.rlib" "/home/brian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b4ef8c9d93bc879a.rlib" "-l" "cudnn" "-l" "ssl" "-l" "crypto" "-l" "OpenCL" "-l" "OpenCL" "-l" "cuda" "-l" "cublas" "-l" "c" "-l" "m" "-l" "blas" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "util"
= note: /home/brian/src/LEAF/leaf-examples/target/release/deps/libcollenchyma_blas-ec053a0bbe0fbf70.rlib(collenchyma_blas-ec053a0bbe0fbf70.0.o): In function `collenchyma_blas::frameworks::native::_$LT$impl$u20$collenchyma_blas..operation..IOperationAxpy$LT$f32$GT$$u20$for$u20$collenchyma..backend..Backend$LT$collenchyma..frameworks..native..Native$GT$$GT$::compute::h406b1a3277e7535b':
collenchyma_blas.cgu-0.rs:(.text._ZN16collenchyma_blas10frameworks6native161_$LT$impl$u20$collenchyma_blas..operation..IOperationAxpy$LT$f32$GT$$u20$for$u20$collenchyma..backend..Backend$LT$collenchyma..frameworks..native..Native$GT$$GT$7compute17h406b1a3277e7535bE+0xa8): undefined reference to `cblas_saxpy'
/home/brian/src/LEAF/leaf-examples/target/release/deps/libcollenchyma_blas-ec053a0bbe0fbf70.rlib(collenchyma_blas-ec053a0bbe0fbf70.0.o): In function `collenchyma_blas::frameworks::native::_$LT$impl$u20$collenchyma_blas..plugin..Copy$LT$f32$GT$$u20$for$u20$collenchyma..backend..Backend$LT$collenchyma..frameworks..native..Native$GT$$GT$::copy_plain::h6e919c2a565e1d45':
collenchyma_blas.cgu-0.rs:(.text._ZN16collenchyma_blas10frameworks6native148_$LT$impl$u20$collenchyma_blas..plugin..Copy$LT$f32$GT$$u20$for$u20$collenchyma..backend..Backend$LT$collenchyma..frameworks..native..Native$GT$$GT$10copy_plain17h6e919c2a565e1d45E+0x210): undefined reference to `cblas_scopy'
/home/brian/src/LEAF/leaf-examples/target/release/deps/libcollenchyma_blas-ec053a0bbe0fbf70.rlib(collenchyma_blas-ec053a0bbe0fbf70.0.o): In function `collenchyma_blas::frameworks::native::_$LT$impl$u20$collenchyma_blas..plugin..Scal$LT$f32$GT$$u20$for$u20$collenchyma..backend..Backend$LT$collenchyma..frameworks..native..Native$GT$$GT$::scal_plain::ha51040994dd4270a':
collenchyma_blas.cgu-0.rs:(.text._ZN16collenchyma_blas10frameworks6native148_$LT$impl$u20$collenchyma_blas..plugin..Scal$LT$f32$GT$$u20$for$u20$collenchyma..backend..Backend$LT$collenchyma..frameworks..native..Native$GT$$GT$10scal_plain17ha51040994dd4270aE+0x214): undefined reference to `cblas_sscal'
/home/brian/src/LEAF/leaf-examples/target/release/deps/libopenssl-68dc63589bfa90ad.rlib(openssl-68dc63589bfa90ad.0.o): In function `openssl::ssl::SslContext::new::h67a75ca537477949':
openssl.cgu-0.rs:(.text._ZN7openssl3ssl10SslContext3new17h67a75ca537477949E+0x29): undefined reference to `SSLv3_method'
/home/brian/src/LEAF/leaf-examples/target/release/deps/libopenssl-68dc63589bfa90ad.rlib(openssl-68dc63589bfa90ad.0.o): In function `openssl::ssl::Ssl::get_ssl_method::h517bf417c9542b4c':
openssl.cgu-0.rs:(.text._ZN7openssl3ssl3Ssl14get_ssl_method17h517bf417c9542b4cE+0xf): undefined reference to `SSLv3_method'
/home/brian/src/LEAF/leaf-examples/target/release/deps/libcudnn-ff85c95eebc4ea5c.rlib(cudnn-ff85c95eebc4ea5c.0.o): In function `cudnn::convolution_descriptor::ConvolutionDescriptor::new::hd52d835ac171c334':
cudnn.cgu-0.rs:(.text._ZN5cudnn22convolution_descriptor21ConvolutionDescriptor3new17hd52d835ac171c334E+0x1d7): undefined reference to `cudnnSetConvolutionNdDescriptor_v3'
cudnn.cgu-0.rs:(.text._ZN5cudnn22convolution_descriptor21ConvolutionDescriptor3new17hd52d835ac171c334E+0x285): undefined reference to `cudnnSetConvolutionNdDescriptor_v3'
cudnn.cgu-0.rs:(.text._ZN5cudnn22convolution_descriptor21ConvolutionDescriptor3new17hd52d835ac171c334E+0x2c5): undefined reference to `cudnnSetConvolutionNdDescriptor_v3'
/home/brian/src/LEAF/leaf-examples/target/release/deps/libcudnn-ff85c95eebc4ea5c.rlib(cudnn-ff85c95eebc4ea5c.0.o): In function `cudnn::api::convolution::_$LT$impl$u20$cudnn..API$GT$::convolution_backward_filter::h56a369ee38156273':
cudnn.cgu-0.rs:(.text._ZN5cudnn3api11convolution28_$LT$impl$u20$cudnn..API$GT$27convolution_backward_filter17h56a369ee38156273E+0x4b): undefined reference to `cudnnConvolutionBackwardFilter_v3'
/home/brian/src/LEAF/leaf-examples/target/release/deps/libcudnn-ff85c95eebc4ea5c.rlib(cudnn-ff85c95eebc4ea5c.0.o): In function `cudnn::api::convolution::_$LT$impl$u20$cudnn..API$GT$::convolution_backward_data::hc00b3fb68dfe8f09':
cudnn.cgu-0.rs:(.text._ZN5cudnn3api11convolution28_$LT$impl$u20$cudnn..API$GT$25convolution_backward_data17hc00b3fb68dfe8f09E+0x4b): undefined reference to `cudnnConvolutionBackwardData_v3'
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: Could not compile `leaf-examples`.
Caused by:
process didn't exit successfully: `rustc --crate-name leaf_examples src/main.rs --crate-type bin -C opt-level=3 --cfg feature="collenchyma" --cfg feature="cuda" --cfg feature="opencl" --cfg feature="leaf" --cfg feature="native" --cfg feature="default" -C metadata=ae5ef3f9c6bfe84b -C extra-filename=-ae5ef3f9c6bfe84b --out-dir /home/brian/src/LEAF/leaf-examples/target/release/deps --emit=dep-info,link -L dependency=/home/brian/src/LEAF/leaf-examples/target/release/deps --extern env_logger=/home/brian/src/LEAF/leaf-examples/target/release/deps/libenv_logger-898336b63180939c.rlib --extern log=/home/brian/src/LEAF/leaf-examples/target/release/deps/liblog-45992a9fecd52540.rlib --extern docopt=/home/brian/src/LEAF/leaf-examples/target/release/deps/libdocopt-6acf94c652da5da9.rlib --extern hyper=/home/brian/src/LEAF/leaf-examples/target/release/deps/libhyper-2876fae34ddaaae3.rlib --extern csv=/home/brian/src/LEAF/leaf-examples/target/release/deps/libcsv-fa7c7e68b69d8e3d.rlib --extern collenchyma=/home/brian/src/LEAF/leaf-examples/target/release/deps/libcollenchyma-14110c1f55835827.rlib --extern rustc_serialize=/home/brian/src/LEAF/leaf-examples/target/release/deps/librustc_serialize-caafd732392a084b.rlib --extern leaf=/home/brian/src/LEAF/leaf-examples/target/release/deps/libleaf-63d30561567bf472.rlib -L native=/usr/lib -L native=/home/brian/src/LEAF/leaf-examples/target/release/build/openssl-sys-5caadec7e6f1f6b8/out -L native=/opt/cuda/lib64` (exit code: 101)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.