[BE][8/16] fix typos in torch/ (torch/csrc/jit/) (#156318)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156318
Approved by: https://github.com/albanD
This commit is contained in:
Xuehai Pan
2025-07-03 02:11:53 +08:00
committed by PyTorch MergeBot
parent c0e155a8d2
commit 541584d22e
45 changed files with 76 additions and 77 deletions

View File

@ -1223,7 +1223,7 @@ std::shared_ptr<SugaredValue> toSugaredValue(
obj.ptr() == py::module::import("torch.jit").attr("isinstance").ptr()) {
return SpecialFormValue::create(prim::isinstance);
#ifdef USE_RPC
// RPC module is only avaialble when build flag "USE_DISTRIBUTED" is on.
// RPC module is only available when build flag "USE_DISTRIBUTED" is on.
} else if (
isRpcAvailable &&
obj.ptr() ==
@ -1236,7 +1236,7 @@ std::shared_ptr<SugaredValue> toSugaredValue(
return SpecialFormValue::create(prim::rpc_sync);
} else if (
isRpcAvailable &&
// RPC module is only avaialble when build flag "USE_DISTRIBUTED" is on.
// RPC module is only available when build flag "USE_DISTRIBUTED" is on.
obj.ptr() ==
py::module::import("torch.distributed.rpc").attr("remote").ptr()) {
return SpecialFormValue::create(prim::rpc_remote);