Update rule for tensorize

Hi, why do we need a separate body rule and update rule for tensorize?
What is the distinction between the 2?

Thanks,
Anand

A common example in this case is a matrix vector tensorization primitive. Suppose you have a big matrix vector multiply that you want to build out of smaller matrix vector multiplies (tensorized); in this case the body for the tensorization is the current multiply that you are performing, and the update is the accumulation into previously computed values.

However, there can be cases where the “body” can be rolled into the “update,” such as when the “update” contains both the operation itself and the accumulation. In this case the “body” can simply be None.

thanks! that makes it clear