Skip to content
Snippets Groups Projects
Commit 61367bf1 authored by kotsifa2's avatar kotsifa2
Browse files

Added perforated convolution in wrapper API implementation. Running, to be debugged

parent a10be392
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,31 @@ void* handleTensorConvApproximationTuples(
conv_pad_h, conv_pad_w,
conv_stride_h, conv_stride_w,
1, 1);
case GPUNodeConfiguration::APPROX::PERFORATION :
{
int row = 0, col = 0;
switch (param) {
case 0:
break;
case 1:
row = 1; col = 0;
break;
case 2:
row = 0; col = 1;
break;
case 3:
row = 1; col = 1;
break;
default:
DEBUG("Unsupported Option: Select default highest, 1-1.\n");
row = 1; col = 1;
break;
}
return tensorConvPerf(input, filter,
conv_pad_h, conv_pad_w,
conv_stride_h, conv_stride_w,
1, 1, row, col);
}
default :
CUSTOM_ASSERT(false && "Unknown approximation type");
ERROR("Unknown approximation type");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment