|
|
@@ -156,8 +156,6 @@ TensorInfo* ChannelImpl::put_impl(const HostTensorND& value, bool no_cache) { |
|
|
|
if (m_async_level == 0) { |
|
|
|
sync_impl(); |
|
|
|
info->desc.comp_node.sync(); |
|
|
|
auto err = info->desc.comp_node.check_async_error(); |
|
|
|
mgb_assert(!err, "%s", err->what()); |
|
|
|
} |
|
|
|
return info; |
|
|
|
} |
|
|
@@ -338,8 +336,6 @@ void ChannelImpl::dispatch_kernel( |
|
|
|
for (auto&& oup : *outputs) { |
|
|
|
auto info = reinterpret_cast<TensorInfo*>(oup); |
|
|
|
info->ptr->comp_node().sync(); |
|
|
|
auto err = info->ptr->comp_node().check_async_error(); |
|
|
|
mgb_assert(!err, "%s", err->what()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@@ -948,8 +944,6 @@ TensorPtr ChannelImpl::wait_tensor(TensorInfo* info, TensorProp prop) { |
|
|
|
}); |
|
|
|
MGB_RECORD_EVENT(TensorWaitPropFinishEvent, info->id, m_waitee_id, prop); |
|
|
|
m_waitee = nullptr; |
|
|
|
auto err = info->ptr->comp_node().check_async_error(); |
|
|
|
mgb_assert(!err, "%s", err->what()); |
|
|
|
return info->ptr; |
|
|
|
} |
|
|
|
|
|
|
|