"magic_pdf/vscode:/vscode.git/clone" did not exist on "a296ea41f9d14cda6257eca51ce089531029a2ba"
Commit afebb964 authored by wangshaojie6's avatar wangshaojie6
Browse files

add workspace size check

parent e8d6434d
......@@ -324,6 +324,12 @@ int main(int argc, char* argv[])
// alloc work space
size_t bwd_weight_workspace_size = conv->GetWorkSpaceSize(argument.get());
if(bwd_weight_workspace_size <= 0)
{
print_use_msg();
exit(1);
}
float conv_ave_time = 0.f;
DeviceMem wei_work_space_device_buf(bwd_weight_workspace_size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment