From 36f7d52379130279cc803a01b45615061c219e4d Mon Sep 17 00:00:00 2001 From: take-cheeze Date: Mon, 16 Dec 2024 21:29:07 +0900 Subject: [PATCH] Fix fmt --- onnxruntime/python/onnxruntime_pybind_ortvalue.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/onnxruntime/python/onnxruntime_pybind_ortvalue.cc b/onnxruntime/python/onnxruntime_pybind_ortvalue.cc index 9ef4a318c2cef..c51655bc50d21 100644 --- a/onnxruntime/python/onnxruntime_pybind_ortvalue.cc +++ b/onnxruntime/python/onnxruntime_pybind_ortvalue.cc @@ -361,8 +361,7 @@ void addOrtValueMethods(pybind11::module& m) { ORT_ENFORCE(ort_value->IsTensor(), "Only tensor type OrtValues are supported"); const onnxruntime::Tensor& tensor = ort_value->Get(); DLDevice device = onnxruntime::dlpack::GetDlpackDevice(*ort_value, tensor.Location().device.Id()); - return py::make_tuple(static_cast(device.device_type), device.device_id); }, "Returns a tuple of integers, (device, device index) (part of __dlpack__ protocol).") - ; + return py::make_tuple(static_cast(device.device_type), device.device_id); }, "Returns a tuple of integers, (device, device index) (part of __dlpack__ protocol)."); py::class_>(m, "OrtValueVector") .def(py::init<>())