Skip to content

Commit

Permalink
Fix output tensor dtype (#1938)
Browse files Browse the repository at this point in the history
  • Loading branch information
laggui committed Jul 1, 2024
1 parent f15896d commit e753b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/burn-fusion/src/ops/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl<B: FusionBackend> FloatTensorOps<Self> for Fusion<B> {
let stream = tensor.stream;
let out = tensor
.client
.tensor_uninitialized(tensor.shape.clone(), B::FloatElem::dtype());
.tensor_uninitialized(tensor.shape.clone(), B::IntElem::dtype());

let desc = UnaryOperationDescription {
input: tensor.into_description(),
Expand Down

0 comments on commit e753b0c

Please sign in to comment.