extracted tensor grid latout function into toDisplayTensor function.
extracted tensor grid latout function into toDisplayTensor function.

colesbury/image,torch/image,Moodstocks/image,jagapiou/image,jonathantompson/image