"git@developer.sourcefind.cn:cnjsdfcy/simbricks.git" did not exist on "e2506d45c49705a89e221e96bde10ad1e6515a87"
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