Fix forward ad for matrix power land race (#62291)
Summary:
Fix land race from https://github.com/pytorch/pytorch/pull/59993
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62291
Reviewed By: driazati, seemethere
Differential Revision: D29946599
Pulled By: albanD
fbshipit-source-id: 16411e1a0c298fad12a6a6788ec2427923b0112a