Browse Source

fix(build/macos): fix macos build

GitOrigin-RevId: 66ec91c647
tags/v1.0.0-rc1
Megvii Engine Team 4 years ago
parent
commit
296a288594
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      imperative/python/src/graph_rt.cpp

+ 3
- 3
imperative/python/src/graph_rt.cpp View File

@@ -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));
}


Loading…
Cancel
Save