Skip to content

Commit 63d4e8d

Browse files
committed
Update on "Excise yaml dependency in torchgen.model"
The problem: - The new CustomOp API depends on torchgen.model - torchgen.model imports `yaml` - `yaml` is not a PyTorch runtime dependency To unblock myself, because I'm not sure how long it'll take to convince people yaml should be a PyTorch runtime dependency (unless one of you wants to approve #100166), this PR removes the yaml dependency from torchgen.model. It does so by splitting torchgen.utils (the offender) into torchgen.utils (no yaml) and torchgen.yaml (which uses yaml). Test Plan: - CI [ghstack-poisoned]
1 parent a711642 commit 63d4e8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
OpDTypes,
2727
)
2828
from torch.testing._internal.common_methods_invocations import op_db
29-
from torchgen.yaml import YamlLoader
29+
from torchgen.yaml_utils import YamlLoader
3030
from torchgen.model import OperatorName
3131

3232
import sys

0 commit comments

Comments
 (0)