summaryrefslogtreecommitdiff
path: root/candle-book
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-08-02 08:20:22 +0100
committerGitHub <noreply@github.com>2023-08-02 08:20:22 +0100
commit51e51da89687dc4678f64377e1c9ef7a74fb410e (patch)
tree21890778d268723a95cf6915469812e3f5db2f00 /candle-book
parent6e33ff62d610776bf5a6b2144b2e8f98c39ccfcc (diff)
downloadcandle-51e51da89687dc4678f64377e1c9ef7a74fb410e.tar.gz
candle-51e51da89687dc4678f64377e1c9ef7a74fb410e.tar.bz2
candle-51e51da89687dc4678f64377e1c9ef7a74fb410e.zip
Rename the candle crate to candle-core (#301)
* Rename to candle-core. * More candle-core renaming.
Diffstat (limited to 'candle-book')
-rw-r--r--candle-book/src/guide/hello_world.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/candle-book/src/guide/hello_world.md b/candle-book/src/guide/hello_world.md
index b1d24d85..a9767d5f 100644
--- a/candle-book/src/guide/hello_world.md
+++ b/candle-book/src/guide/hello_world.md
@@ -5,8 +5,8 @@ We will now create the hello world of the ML world, building a model capable of
Open `src/main.rs` and fill in this content:
```rust
-# extern crate candle;
-use candle::{DType, Device, Result, Tensor};
+# extern crate candle_core;
+use candle_core::{DType, Device, Result, Tensor};
struct Model {
first: Tensor,
@@ -49,8 +49,8 @@ Now that we have this, we might want to complexify things a bit, for instance by
the classical `Linear` layer. We can do as such
```rust
-# extern crate candle;
-# use candle::{DType, Device, Result, Tensor};
+# extern crate candle_core;
+# use candle_core::{DType, Device, Result, Tensor};
struct Linear{
weight: Tensor,
bias: Tensor,
@@ -79,8 +79,8 @@ impl Model {
This will change the model running code into a new function
```rust
-# extern crate candle;
-# use candle::{DType, Device, Result, Tensor};
+# extern crate candle_core;
+# use candle_core::{DType, Device, Result, Tensor};
# struct Linear{
# weight: Tensor,
# bias: Tensor,
@@ -144,9 +144,9 @@ cargo add --git https://github.com/LaurentMazare/candle.git candle-nn
And rewrite our examples using it
```rust
-# extern crate candle;
+# extern crate candle_core;
# extern crate candle_nn;
-use candle::{DType, Device, Result, Tensor};
+use candle_core::{DType, Device, Result, Tensor};
use candle_nn::Linear;
struct Model {