I would like to have a list of parameters (Pa, Pb, Pc) and perform several simple matrix operations on my input using these parameters.
For instance, consider x = tensor([1, 2, 3]). I would like to perform the operation x * tensor([Pa, Pa, Pb]) * tensor([Pb, Pc, Pa]).
How can I accomplish this?