-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels