(state_dict)
| 662 | |
| 663 | |
| 664 | def copy_state_dict_cpu(state_dict): |
| 665 | new_state = {} |
| 666 | for k,v in state_dict.items(): |
| 667 | new_state[k] = v.cpu() |
| 668 | return new_state |
| 669 | |
| 670 | def copy_optim_state_dict_cpu(state_dict): |
| 671 | new_state = {} |
nothing calls this directly
no outgoing calls
no test coverage detected