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

fix(build/windows/macos): fix build caused by 40ca9ea80e

GitOrigin-RevId: b4868a08f63286f24f76ab457dbbc786a2e85936
上级 e0da7485
......@@ -83,7 +83,8 @@ size_t TensorRecorder::record_tensor(const TensorPtr& tensor) {
return id;
} else {
auto id = m_next_id++;
m_tensor_map.insert({tensor.get(), {std::weak_ptr{tensor}, id}});
m_tensor_map.insert(
{tensor.get(), {std::weak_ptr<Tensor>{tensor}, id}});
return id;
}
}
......
......@@ -40,8 +40,8 @@ struct ProfileEntry {
std::vector<std::tuple<CompNode, TimeClosure, TimeClosure>> device_list;
std::vector<ProfileTensor> inputs;
std::vector<ProfileTensor> outputs;
ssize_t memory = 0;
ssize_t computation = 0;
long long memory = 0;
long long computation = 0;
#if MGB_ENABLE_JSON
std::shared_ptr<json::Value> param;
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册