From 296a2885942cbcc0d113c8a64077a4adc9957d41 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Thu, 17 Sep 2020 11:16:09 +0800 Subject: [PATCH] fix(build/macos): fix macos build GitOrigin-RevId: 66ec91c6473e5aa19c30d9cb4629d430ba4dfbcb --- imperative/python/src/graph_rt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imperative/python/src/graph_rt.cpp b/imperative/python/src/graph_rt.cpp index 4bc4c194b..d6a9bba8a 100644 --- a/imperative/python/src/graph_rt.cpp +++ b/imperative/python/src/graph_rt.cpp @@ -297,9 +297,9 @@ void init_graph_rt(py::module m) { for (auto i : rst.params) { params.append(py::cast(i)); } - auto rst_stat = std::vector{ - rst.nr_opr, rst.tot_bytes, rst.tensor_value_bytes, rst.content_hash - }; + auto rst_stat = + std::vector{rst.nr_opr, rst.tot_bytes, rst.tensor_value_bytes, + static_cast(rst.content_hash)}; for (auto i : rst_stat) { stat.append(py::cast(i)); } -- GitLab