Convert array to tensor

see 28809