pub unsafe extern "C" fn M_getDeviceIdFromSpec(
spec: *const M_TensorSpec,
) -> c_intExpand 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.
pub unsafe extern "C" fn M_getDeviceIdFromSpec(
spec: *const M_TensorSpec,
) -> c_intGets the device ID from a tensor specification.
@param spec The tensor spec.
@return The device ID. Returns 0 if the spec is invalid.