Hi, I want to calculate the projection of gradient(conv gradient) on the direction of weight(conv weight),
does pytorch implement it (tensor projection)? or can someone share some information(web, tutorial) about it ?
Thanks
Hi, I want to calculate the projection of gradient(conv gradient) on the direction of weight(conv weight),
does pytorch implement it (tensor projection)? or can someone share some information(web, tutorial) about it ?
Thanks
I think some more context and precision would be neat.
These two things that are close to your description and that come to my mind:
(weight * grad).sum() / weight.norm()**2 * weight
or so.Best regards
Thomas