Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
laggui committed Dec 13, 2024
1 parent ba03fad commit a93e8da
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions crates/burn-fusion/src/tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ impl<R: FusionRuntime> FusionTensor<R> {
let id = self.stream;
let client = self.client.clone();
let desc = self.into_description();
let fut = client.read_tensor_float::<B>(desc, id);
async move { fut.await }
client.read_tensor_float::<B>(desc, id)
}

pub(crate) fn q_into_data<B>(self) -> impl Future<Output = TensorData>
Expand All @@ -136,8 +135,7 @@ impl<R: FusionRuntime> FusionTensor<R> {
let id = self.stream;
let client = self.client.clone();
let desc = self.into_description();
let fut = client.read_tensor_quantized::<B>(desc, id);
async move { fut.await }
client.read_tensor_quantized::<B>(desc, id)
} else {
panic!("Expected quantized float dtype, got {:?}", self.dtype)
}
Expand All @@ -150,7 +148,7 @@ impl<R: FusionRuntime> FusionTensor<R> {
let id = self.stream;
let client = self.client.clone();
let desc = self.into_description();
async move { client.read_tensor_int::<B>(desc, id).await }
client.read_tensor_int::<B>(desc, id)
}

pub(crate) fn bool_into_data<B>(self) -> impl Future<Output = TensorData>
Expand All @@ -160,8 +158,7 @@ impl<R: FusionRuntime> FusionTensor<R> {
let id = self.stream;
let client = self.client.clone();
let desc = self.into_description();
let fut = client.read_tensor_bool::<B>(desc, id);
async move { fut.await }
client.read_tensor_bool::<B>(desc, id)
}
}

Expand Down

0 comments on commit a93e8da

Please sign in to comment.