Python/C++ API Parity: TransformerDecoderLayer (#42717)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/37756
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42717
Reviewed By: zhangguanheng66
Differential Revision: D23095841
Pulled By: glaringlee
fbshipit-source-id: 327a5a23c9a3cca05e422666a6d7d802a7e8c468