Skip to content

Commit eec8b25

Browse files
committed
move nn.functional to burn-tensor
1 parent 6ad8adf commit eec8b25

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

crates/burn-core/src/nn/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
pub use burn_tensor::nn::*;
2+
13
/// Attention module
24
pub mod attention;
35

@@ -19,9 +21,6 @@ pub mod transformer;
1921
/// Interpolate module
2022
pub mod interpolate;
2123

22-
/// Functional module
23-
pub mod functional;
24-
2524
mod dropout;
2625
mod embedding;
2726
mod gelu;

crates/burn-tensor/src/tensor/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ pub mod loss;
3232
/// The burn module.
3333
pub mod module;
3434

35+
/// The nn module.
36+
pub mod nn;
37+
3538
/// Operations on tensors module.
3639
pub mod ops;
3740

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// The functional module.
2+
pub mod functional;

0 commit comments

Comments
 (0)