+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tensor_ops/conv2d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub trait TryConv2D<F> {
}
}

impl<T, F> TryConv2D<F> for T {}
impl<S: Shape, E: Dtype, D: DeviceStorage, T, F> TryConv2D<F> for Tensor<S, E, D, T> {}

impl<
const C: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/tensor_ops/convtrans2d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub trait TryConvTrans2D<F> {
}
}

impl<T, F> TryConvTrans2D<F> for T {}
impl<S: Shape, E: Dtype, D: DeviceStorage, T, F> TryConvTrans2D<F> for Tensor<S, E, D, T> {}

impl<
const C: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/tensor_ops/pool2d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ macro_rules! pool2d {
self.try_pool2d()
}
}
impl<T> $TryTrait for T {}
impl<S: Shape, E: Dtype, D: DeviceStorage, T> $TryTrait for Tensor<S, E, D, T> {}

impl<
C: Dim,
Expand Down
2 changes: 1 addition & 1 deletion src/tensor_ops/upscale2d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub trait TryUpscale2D {
Upscale2DWithMethod::try_upscale2d_like(self, height, width)
}
}
impl<T> TryUpscale2D for T {}
impl<S: Shape, E: Dtype, D: DeviceStorage, T> TryUpscale2D for Tensor<S, E, D, T> {}

impl<
C: Dim,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_resnet18_f32.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![cfg_attr(feature = "nightly", feature(generic_const_exprs))]

#[cfg(feature = "nightly")]
#[cfg(all(feature = "test-integrations", feature = "nightly"))]
mod model {
use dfdx::prelude::*;

Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载