modified:   tensor.cc