resize should go first
Merge pull request #32 from nicholas-leonard/cudatensor

resize should go first