forked from tracel-ai/burn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f179f1
commit 54c30ab
Showing
95 changed files
with
212 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[workspace] | ||
members = [ | ||
"burn", | ||
"burn-core", | ||
"burn-train", | ||
"burn-derive", | ||
"burn-tensor", | ||
"burn-tensor-testgen", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[package] | ||
name = "burn-core" | ||
version = "0.4.0" | ||
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"] | ||
description = "BURN: Burn Unstoppable Rusty Neurons" | ||
repository = "https://github.com/burn-rs/burn-core" | ||
readme = "README.md" | ||
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"] | ||
categories = ["science"] | ||
license = "MIT/Apache-2.0" | ||
edition = "2021" | ||
|
||
[features] | ||
default = [] | ||
experimental-named-tensor = ["burn-tensor/experimental-named-tensor"] | ||
|
||
[dependencies] | ||
burn-tensor = { version = "0.4.0", path = "../burn-tensor" } | ||
burn-autodiff = { version = "0.4.0", path = "../burn-autodiff" } | ||
burn-dataset = { version = "0.4.0", path = "../burn-dataset", default-features = false } | ||
burn-derive = { version = "0.4.0", path = "../burn-derive" } | ||
|
||
# Utilities | ||
derive-new = "0.5.9" | ||
rand = "0.8.5" | ||
log = "0.4.17" | ||
|
||
# Serialize Deserialize | ||
serde = { version = "1.0.151", features = ["derive"] } | ||
serde_json = "1.0.91" | ||
flate2 = "1.0.25" | ||
|
||
# Parameter & Optimization | ||
nanoid = "0.4.0" | ||
|
||
[dev-dependencies] | ||
burn-dataset = { version = "0.4.0", path = "../burn-dataset", features = [ | ||
"fake", | ||
] } | ||
burn-ndarray = { version = "0.4.0", path = "../burn-ndarray" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE-APACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE-MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Burn Core | ||
|
||
This crate should be used with [burn](https://github.com/burn-rs/burn). | ||
|
||
[![Current Crates.io Version](https://img.shields.io/crates/v/burn-core.svg)](https://crates.io/crates/burn-core) | ||
[![license](https://shields.io/badge/license-MIT%2FApache--2.0-blue)](https://github.com/burn-rs/burn-core/blob/master/README.md) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#[macro_use] | ||
extern crate derive_new; | ||
|
||
pub mod config; | ||
pub mod data; | ||
pub mod module; | ||
pub mod nn; | ||
pub mod optim; | ||
pub mod tensor; | ||
|
||
#[cfg(test)] | ||
pub type TestBackend = burn_ndarray::NdArrayBackend<f32>; | ||
#[cfg(test)] | ||
pub type TestADBackend = burn_autodiff::ADBackendDecorator<TestBackend>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
pub(super) mod visitor; | ||
|
||
pub mod decay; | ||
pub mod momentum; | ||
|
||
mod adam; | ||
mod base; | ||
mod grad_accum; | ||
mod sgd; | ||
mod visitor; | ||
|
||
pub use adam::*; | ||
pub use base::*; | ||
pub use grad_accum::*; | ||
pub use sgd::*; | ||
pub use visitor::*; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[package] | ||
name = "burn-train" | ||
version = "0.4.0" | ||
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"] | ||
description = "Training crate for burn" | ||
repository = "https://github.com/burn-rs/burn" | ||
readme = "README.md" | ||
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"] | ||
categories = ["science"] | ||
license = "MIT/Apache-2.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
burn-core = { version = "0.4.0", path = "../burn-core" } | ||
|
||
# Console | ||
indicatif = "0.17.2" | ||
log4rs = "1.2.0" | ||
log = "0.4.17" | ||
|
||
# Metrics | ||
nvml-wrapper = "0.8.0" | ||
textplots = "0.8.0" | ||
rgb = "0.8.34" | ||
terminal_size = "0.2.3" | ||
|
||
# Utilities | ||
derive-new = "0.5.9" | ||
serde = { version = "1.0.151", features = ["derive"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE-APACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE-MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Burn Train | ||
|
||
This crate should be used with [burn](https://github.com/burn-rs/burn). | ||
|
||
[![Current Crates.io Version](https://img.shields.io/crates/v/burn-train.svg)](https://crates.io/crates/burn-train) | ||
[![license](https://shields.io/badge/license-MIT%2FApache--2.0-blue)](https://github.com/burn-rs/burn-train/blob/master/README.md) |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
burn/src/train/callback/base.rs → burn-train/src/callback/base.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
.../src/train/checkpoint/async_checkpoint.rs → ...-train/src/checkpoint/async_checkpoint.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
burn/src/train/checkpoint/base.rs → burn-train/src/checkpoint/base.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
burn/src/train/checkpoint/file.rs → burn-train/src/checkpoint/file.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
burn/src/train/learner/base.rs → burn-train/src/learner/base.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
burn/src/train/learner/builder.rs → burn-train/src/learner/builder.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
burn/src/train/learner/classification.rs → burn-train/src/learner/classification.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 3 additions & 5 deletions
8
burn/src/train/learner/step/train.rs → burn-train/src/learner/step/train.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
burn/src/train/learner/train_val.rs → burn-train/src/learner/train_val.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#[macro_use] | ||
extern crate derive_new; | ||
|
||
pub mod checkpoint; | ||
pub mod logger; | ||
pub mod metric; | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
burn/src/train/logger/metric.rs → burn-train/src/logger/metric.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.