Skip to content

Commit

Permalink
Fix CPU Unit Test CI on OSS (#1777)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1777

{F1467318350}

CPU Unit Test CI for OSS failing on call to PT2 ExportedProgram: https://github.com/pytorch/torchrec/actions/runs/8233905334/job/22514441384. OSS CI expects .module() instead of directly calling forward

Reviewed By: joshuadeng, gnahzg

Differential Revision: D54751106

fbshipit-source-id: d1c614ec593edaf31ca894c36d2430e06f779f76
  • Loading branch information
PaulZhang12 authored and facebook-github-bot committed Mar 11, 2024
1 parent 0553999 commit bd96e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrec/distributed/tests/test_pt2.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _test_kjt_input_module(

if test_pt2_ir_export:
pt2_ir = torch.export.export(EM, inputs, {}, strict=False)
pt2_ir_output = pt2_ir(*inputs)
pt2_ir_output = pt2_ir.module()(*inputs)
assert_close(eager_output, pt2_ir_output)

def test_kjt_split(self) -> None:
Expand Down

0 comments on commit bd96e8f

Please sign in to comment.