Update tensor.h
Merge pull request #11 from tqchen/master

Update tensor.h