Skip to content

Commit 7e17a6e

Browse files
Yong Hoon Shinfacebook-github-bot
authored andcommitted
Do not import from pyre_extensions (#2937)
Summary: X-link: facebookresearch/FBGEMM#40 Pull Request resolved: #2937 pyre_extensions not availabe in trec OSS. breaks torchrec build tests: https://github.com/pytorch/torchrec/actions/runs/10222011214/job/28285796153 pyre_extensions is also not safe to use in code that will be torch.packaged, as it requires sys for version checks Reviewed By: duduyi2013 Differential Revision: D60792133 fbshipit-source-id: 10ff5f3f4f6a030b0ed82878275a771570595738
1 parent fc212d4 commit 7e17a6e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fbgemm_gpu/fbgemm_gpu/tbe/ssd/training.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
)
3737

3838
from torch import distributed as dist, nn, Tensor # usort:skip
39-
from pyre_extensions import none_throws
4039
from torch.autograd.profiler import record_function
4140

4241
from .common import ASSOC
@@ -450,7 +449,7 @@ def __init__(
450449
)
451450
logging.info(
452451
f"logging stats reporter setup, {self.gather_ssd_cache_stats=}, "
453-
f"stats_reporter:{none_throws(self.stats_reporter) if self.stats_reporter else 'none'}, "
452+
f"stats_reporter:{self.stats_reporter if self.stats_reporter else 'none'}, "
454453
)
455454

456455
# pyre-ignore[3]

0 commit comments

Comments
 (0)