Skip to main content

device_put

Function device_put 

Source
pub fn device_put<T: Tree<Native>>(x: &T) -> OnDevice<T>
Expand description

Copies a pytree of Native values to the device of the runtime’s platform.

§Panics

Panics if no PJRT plugin is configured or the transfer fails.