I tried through reshape but it is giving wrong answer

for ex:

for (18952,28,28,3) it is giving as (18952,2852)