I also didn’t know these methods only work on 1D arrays! See Resize!(matrix) for a discussion.
@DhananjayAshok can you try to make a minimal working example in Julia that reproduces the problem? Or at least show the exact error message that you get?