torch.optim.Optimizer.state_dict_async
Optimizer.state_dict_async(): Promise<OptimizerStateDict>Returns the state of the optimizer as a dictionary (async version). This version properly handles GPU tensors by reading them asynchronously.
Returns
Promise<OptimizerStateDict>