Skip to content

Commit

Permalink
disable f16, since we don't support it yet
Browse files Browse the repository at this point in the history
  • Loading branch information
favilo committed Dec 3, 2023
1 parent 71456b7 commit 50ecbd4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dfdx-core/src/tensor_ops/utilities/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ impl Device<f32> for crate::tensor::Cuda {}
#[cfg(feature = "cuda")]
impl Device<f64> for crate::tensor::Cuda {}

#[cfg(all(feature = "webgpu", feature = "f16"))]
impl Device<f16> for crate::tensor::Webgpu {}
#[cfg(all(feature = "webgpu", feature = "f16"))]
impl Device<AMP<f16>> for crate::tensor::Webgpu {}
// TODO: How can we implement this for f16 when WGSL doesn't support f16 yet?
// #[cfg(all(feature = "webgpu", feature = "f16"))]
// impl Device<f16> for crate::tensor::Webgpu {}
// #[cfg(all(feature = "webgpu", feature = "f16"))]
// impl Device<AMP<f16>> for crate::tensor::Webgpu {}
#[cfg(feature = "webgpu")]
impl Device<f32> for crate::tensor::Webgpu {}

Expand Down

0 comments on commit 50ecbd4

Please sign in to comment.