Assertions
-
ivy.utils.assertions.check_all(results, message='one of the args is False', as_array=True)[source]
-
ivy.utils.assertions.check_all_or_any_fn(*args, fn, type='all', limit=(0,), message='args must exist according to type and limit given', as_array=True)[source]
-
ivy.utils.assertions.check_any(results, message='all of the args are False', as_array=True)[source]
-
ivy.utils.assertions.check_dev_correct_formatting(device)[source]
-
ivy.utils.assertions.check_dimensions(x)[source]
-
ivy.utils.assertions.check_elem_in_list(elem, list, inverse=False, message='')[source]
-
ivy.utils.assertions.check_equal(x1, x2, inverse=False, message='', as_array=True)[source]
-
ivy.utils.assertions.check_exists(x, inverse=False, message='')[source]
-
ivy.utils.assertions.check_false(expression, message='expression must be False')[source]
-
ivy.utils.assertions.check_gather_input_valid(params, indices, axis, batch_dims)[source]
-
ivy.utils.assertions.check_gather_nd_input_valid(params, indices, batch_dims)[source]
-
ivy.utils.assertions.check_greater(x1, x2, allow_equal=False, message='', as_array=True)[source]
-
ivy.utils.assertions.check_inplace_sizes_valid(var, data)[source]
-
ivy.utils.assertions.check_isinstance(x, allowed_types, message='')[source]
-
ivy.utils.assertions.check_kernel_padding_size(kernel_size, padding_size)[source]
-
ivy.utils.assertions.check_less(x1, x2, allow_equal=False, message='', as_array=True)[source]
-
ivy.utils.assertions.check_one_way_broadcastable(x1, x2)[source]
-
ivy.utils.assertions.check_same_dtype(x1, x2, message='')[source]
-
ivy.utils.assertions.check_shape(x1, x2, message='')[source]
-
ivy.utils.assertions.check_shapes_broadcastable(var, data)[source]
-
ivy.utils.assertions.check_true(expression, message='expression must be True')[source]
-
ivy.utils.assertions.check_unsorted_segment_valid_params(data, segment_ids, num_segments)[source]
This should have hopefully given you an overview of the assertions submodule, if you have any questions, please feel free to reach out on our discord!