Skip to content

Commit 5fecb44

Browse files
A2valaggui
andauthored
Fix register_float_tensor to use the correct dtype (#3774)
* Fix register_float_tensor to use the correct dtype * Fix clippy --------- Co-authored-by: Guillaume Lagrange <[email protected]>
1 parent 6b0216c commit 5fecb44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/burn-remote/src/client/runner.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use burn_communication::{Address, ProtocolClient, data_service::TensorTransferId
33
use burn_ir::TensorIr;
44
use burn_router::{MultiBackendBridge, RouterTensor, RunnerClient, get_client};
55
use burn_tensor::{
6-
DType, TensorData,
6+
TensorData,
77
backend::{DeviceId, DeviceOps},
88
};
99
use std::{
@@ -65,9 +65,9 @@ impl RunnerClient for RemoteClient {
6565
fn register_float_tensor(
6666
&self,
6767
shape: Vec<usize>,
68-
_dtype: burn_tensor::FloatDType,
68+
dtype: burn_tensor::FloatDType,
6969
) -> RouterTensor<Self> {
70-
self.register_empty_tensor(shape, DType::F32)
70+
self.register_empty_tensor(shape, dtype.into())
7171
}
7272

7373
fn device(&self) -> Self::Device {

0 commit comments

Comments
 (0)