Skip to content

Commit

Permalink
Update no-std
Browse files Browse the repository at this point in the history
  • Loading branch information
coreylowman committed Oct 25, 2023
1 parent a4db3d5 commit aef72b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dfdx-core/src/nn_traits/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
mod tuples;
mod vecs;

use std::vec::Vec;

use crate::prelude::{Device, Dtype, Gradients, Shape, Tensor, UniqueId};

/// Mutable & Immutable forward of `Input` that produces [Module::Output].
Expand Down
2 changes: 2 additions & 0 deletions dfdx-core/src/nn_traits/tuples.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use crate::{dtypes::Dtype, tensor::UniqueId, tensor_ops::Device};

use std::vec::Vec;

macro_rules! tuple_impls {
([$($name:ident),+] [$($idx:tt),+], $last:ident, [$($rev_tail:ident),*]) => {

Expand Down
2 changes: 2 additions & 0 deletions dfdx-core/src/nn_traits/vecs.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use crate::{dtypes::Dtype, tensor::UniqueId, tensor_ops::Device};

use std::vec::Vec;

impl<E: Dtype, D: Device<E>, T: crate::nn_traits::BuildOnDevice<E, D>>
crate::nn_traits::BuildOnDevice<E, D> for Vec<T>
{
Expand Down

0 comments on commit aef72b0

Please sign in to comment.