mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[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:
committed by
PyTorch MergeBot
parent
c0e155a8d2
commit
541584d22e
@ -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);
|
||||
|
Reference in New Issue
Block a user