提交 296a2885 编写于 作者: M Megvii Engine Team

fix(build/macos): fix macos build

GitOrigin-RevId: 66ec91c6473e5aa19c30d9cb4629d430ba4dfbcb
上级 c974d615
......@@ -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<size_t>(rst.content_hash)};
for (auto i : rst_stat) {
stat.append(py::cast(i));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册