Populating values of tensor - Modular