mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Remove unused Python variables in torch/[b-z]* (#136963)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/136963 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
fb44658415
commit
c0582fd0f8
@ -297,7 +297,7 @@ def _full_pre_state_dict_hook(
|
||||
``nn.Module``.
|
||||
"""
|
||||
if getattr(fsdp_state, "_device_mesh", False):
|
||||
root_mesh = _mesh_resources.get_root_mesh(fsdp_state._device_mesh)
|
||||
_mesh_resources.get_root_mesh(fsdp_state._device_mesh)
|
||||
|
||||
_common_pre_state_dict_hook(module, fsdp_state)
|
||||
_common_unshard_pre_state_dict_hook(
|
||||
|
||||
Reference in New Issue
Block a user