Skip to content

Commit f98762d

Browse files
Jingchang Zhangfacebook-github-bot
Jingchang Zhang
authored andcommitted
Add support for compile optimizer step (#2810)
Summary: This diff adds support for compiling the optimizer step in the train pipeline of TorchRec. The changes include: 1. Add a new argument to the TrainPipeline constructor to enable compilation of the optimizer step, and modify the optimizer step to be compiled if the argument is set to True. 2. The test_equal_to_non_pipelined_compiled test cases are also added to ensure that the compiled optimizer step produces the same results as the non-compiled version. Differential Revision: D71031049
1 parent 9d72dd5 commit f98762d

File tree

3 files changed

+482
-18
lines changed

3 files changed

+482
-18
lines changed

0 commit comments

Comments
 (0)