fixed usage of reshape
Merge pull request #2854 from ilya-lavrenov:tapi_filter2d