Skip to content

Commit f26534d

Browse files
committed
Patch activation offload test bound symbols
Signed-off-by: hongbinl <hongbinl@nvidia.com>
1 parent df5e715 commit f26534d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/pytorch/test_fusible_ops.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,20 @@
7474

7575
def test_basic_operation_activation_offloading_policy(monkeypatch):
7676
"""BasicOperation should expose a public opt-out for saved activation CPU offload."""
77-
import transformer_engine.pytorch.cpu_offload as cpu_offload
77+
import transformer_engine.pytorch.ops.op as op_module
7878

7979
calls = []
8080
tensor = torch.empty(1)
8181
tensor_id = id(tensor)
8282
op = te_ops.Identity()
8383

8484
monkeypatch.setattr(
85-
cpu_offload,
85+
op_module,
8686
"mark_activation_offload",
8787
lambda *tensors: calls.append(("mark", [id(t) for t in tensors])),
8888
)
8989
monkeypatch.setattr(
90-
cpu_offload,
90+
op_module,
9191
"mark_not_offload",
9292
lambda *tensors: calls.append(("skip", [id(t) for t in tensors])),
9393
)

0 commit comments

Comments
 (0)