Rate this Page
โ˜… โ˜… โ˜… โ˜… โ˜…

torch.get_device_module#

torch.get_device_module(device=None)[source]#

Returns the module associated with a given device(e.g., torch.device(โ€˜cudaโ€™), โ€œmtia:0โ€, โ€œxpuโ€, โ€ฆ). If no device is given, return the module for the current accelerator or CPU if none is present.