summaryrefslogtreecommitdiff
path: root/candle-core/src/lib.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-07-13 14:09:51 +0100
committerGitHub <noreply@github.com>2023-07-13 14:09:51 +0100
commit6991036bc50bdfb5312b7145443d413dbd69d77e (patch)
treec90d0dab8f9e829868dfedbaad6965cf21133959 /candle-core/src/lib.rs
parent7adc8c903a2963fd35a8a2d2e353ed086387396c (diff)
downloadcandle-6991036bc50bdfb5312b7145443d413dbd69d77e.tar.gz
candle-6991036bc50bdfb5312b7145443d413dbd69d77e.tar.bz2
candle-6991036bc50bdfb5312b7145443d413dbd69d77e.zip
Introduce the variables api used for adjusting parameters during the training loop. (#158)
* Add the variable api. * And add a comment.
Diffstat (limited to 'candle-core/src/lib.rs')
-rw-r--r--candle-core/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/candle-core/src/lib.rs b/candle-core/src/lib.rs
index 0108c198..af1eb215 100644
--- a/candle-core/src/lib.rs
+++ b/candle-core/src/lib.rs
@@ -56,6 +56,7 @@ mod storage;
mod strided_index;
mod tensor;
pub mod utils;
+mod variable;
pub use cpu_backend::CpuStorage;
pub use device::{Device, DeviceLocation};
@@ -67,6 +68,7 @@ pub use shape::{Shape, D};
pub use storage::Storage;
use strided_index::StridedIndex;
pub use tensor::{Tensor, TensorId};
+pub use variable::Variable;
#[cfg(feature = "cuda")]
pub use cuda_backend::{CudaDevice, CudaStorage};