torch.get_device_context
function get_device_context(name: string): DeviceContext | nullGet a registered device's context.
Parameters
namestring- Device name
Returns
DeviceContext | null– Device context or null if not initializedfunction get_device_context(name: string): DeviceContext | nullGet a registered device's context.
namestringDeviceContext | null– Device context or null if not initialized