Skip to main content

M_getDeviceIdFromSpec

Function M_getDeviceIdFromSpec 

Source
pub unsafe extern "C" fn M_getDeviceIdFromSpec(
    spec: *const M_TensorSpec,
) -> c_int
Expand description

Gets the device ID from a tensor specification.

@param spec The tensor spec.

@return The device ID. Returns 0 if the spec is invalid.