tensor.cpp edited