Created by: sneaxiy
tensor_impl.h: fix the type comparison bug. reader.cc: make some suggestions to handle exception when accessing data in vector.