Home
last modified time | relevance | path

Searched refs:_init_model (Results 1 – 4 of 4) sorted by relevance

/external/pytorch/torch/distributed/checkpoint/examples/
Dstateful_example.py59 def _init_model(device, world_size): function
81 model, optim = _init_model(device, world_size)
90 model, optim = _init_model(device, world_size)
Dasync_checkpointing_example.py51 def _init_model(rank, world_size): function
89 model, optim = _init_model(rank, world_size)
/external/pytorch/test/distributed/fsdp/
Dtest_fsdp_comm_hooks.py174 def _init_model(self, core, sharding_strategy, mixed_precision=None): member in TestCommunicationHooks
205 fsdp_model_with_hook = self._init_model(
255 fsdp_model_with_hook = self._init_model(
315 fsdp_model_with_hook = self._init_model(
342 fsdp_with_hook = self._init_model(
349 fsdp_with_mp = self._init_model(
Dtest_fsdp_comm.py55 def _init_model( member in TestCommunication
229 fsdp_model = self._init_model(nested_model, sharding_strategy, device)