Skip to content

Commit

Permalink
Fix zeros impl
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Oct 10, 2024
1 parent 60eb251 commit e51ecb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions candle-core/src/cuda_backend/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ impl BackendDevice for CudaDevice {
CudaStorageSlice::F64(data)
}
DType::F8E4M3 => {
let data = self.alloc_zeros::<f64>(elem_count).w()?;
CudaStorageSlice::F64(data)
let data = self.alloc_zeros::<F8E4M3>(elem_count).w()?;
CudaStorageSlice::F8E4M3(data)
}
};
Ok(CudaStorage {
Expand Down

0 comments on commit e51ecb6

Please sign in to comment.