Create generate-tensor.cpp