mirror of https://github.com/tracel-ai/burn.git
Updated explanation to match code (#1012)
Updated the explanation at the beginning to match the actual changes to 'Cargo.toml'. Moved down the 'edition' property to match the style of the initial 'Cargo.toml' file. Removed unnecessary comment for a self-explanatory piece of code. Some rewording.
This commit is contained in:
parent
fda9e5d388
commit
87393b2070
|
@ -1,14 +1,14 @@
|
||||||
# Model
|
# Model
|
||||||
|
|
||||||
The first step is to create a project and add the different Burn dependencies. In a `Cargo.toml`
|
The first step is to create a project and add the different Burn dependencies. In the `Cargo.toml` file,
|
||||||
file, add the `burn`, `burn-wgpu`, `burn-dataset`, `burn-autodiff` and `burn-train`. Note that the
|
add the `burn` dependency with `train` and `wgpu` features. Note that the `serde` dependency is also mandatory
|
||||||
`serde` dependency is necessary for serialization and is mandatory for the time being.
|
for the time being, as it is needed for serialization.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[package]
|
[package]
|
||||||
edition = "2021"
|
|
||||||
name = "my-first-burn-model"
|
name = "my-first-burn-model"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
burn = { version = "0.10.0", features=["train", "wgpu"]}
|
burn = { version = "0.10.0", features=["train", "wgpu"]}
|
||||||
|
@ -24,7 +24,6 @@ pooling and ReLU activations. We will also use dropout to improve training perfo
|
||||||
Let us start by creating a model in a file `model.rs`.
|
Let us start by creating a model in a file `model.rs`.
|
||||||
|
|
||||||
```rust , ignore
|
```rust , ignore
|
||||||
// Import required for the model.rs file
|
|
||||||
use burn::{
|
use burn::{
|
||||||
config::Config,
|
config::Config,
|
||||||
module::Module,
|
module::Module,
|
||||||
|
|
Loading…
Reference in New Issue