pub unsafe extern "C" fn nn_model_validate(
    memory: *const NNModel,
    size: usize
) -> c_int
Expand description

Attempts to validate model, this is automatically called by nn_model_load and nn_model_mmap. The function returns 0 on success, otherwise it will return an error code which can be turned into a string by calling @ref nn_model_validate_error() with the return value from @ref nn_model_validate().

@public @memberof NNModel @since 2.0