Full Assertions Library

Graphbook provides a comprehensive set of assertions to help you validate your data and ensure its accuracy. These assertions are designed to cover a wide range of scenarios and are easy to use.

NameDescription
{wrt_input}_globally_accesses_operation_inputwrt_input globally accesses operation input
{wrt_input}_globally_accesses_data_type_decimalwrt_input globally accesses data type decimal
{left_limit}_data_type_is_integer_or_decimalleft_limit data type is integer or decimal
{output}_data_type_is_textoutput data type is text
{right_operand}_is_non_zeroright_operand is non-zero
{text}_is_arraytext is array
{dimension_index}_is_greater_than_or_equal_to_zerodimension_index is greater than or equal to zero
{shape}_is_greater_than_zeroshape is greater than zero
{shape}_data_type_is_integershape data type is integer
{output}_data_type_is_decimaloutput data type is decimal
{shape}_has_one_dimensionshape has one dimension
{random_seed}_is_scalarrandom_seed is scalar
{function_output}_globally_accesses_operation_outputfunction_output globally accesses operation output
{probability}_is_less_than_or_equal_to_oneprobability is less than or equal to one
{dir_path}_is_scalar_or_has_one_dimensiondir_path is scalar or has one dimension
{output}_data_type_is_booleanoutput data type is boolean
{search_regex}_conforms_to_regular_expressionsearch_regex conforms to regular expression
{array}_has_more_than_one_dimensionarray has more than one dimension
{dir_path}{file_name}_exists_in_filesdir_path file_name exists in files
{right_operand}_is_scalar_if_{left_operand}_is_scalarright_operand is scalar if left_operand is scalar
{sampled_array}_number_of_dimensions_is_the_same_as_{array}sampled_array number of dimensions is the same as array
{subwords}_has_one_dimension_if_{words}_is_scalarsubwords has one dimension if words is scalar
{right_limit}_data_type_is_the_same_as_{left_limit}right_limit data type is the same as left_limit
{input}_number_of_elements_is_equal_to_{output}_number_of_elementsinput number of elements is equal to output number of elements
{input}_number_of_elements_is_equal_to_number_of_elements_specified_by_shape_{new_shape}input number of elements is equal to number of elements specified by shape new_shape
{dimension_index}_is_less_than_{text}_number_of_dimensionsdimension_index is less than text number of dimensions
{right_operand}_is_array_if_{left_operand}_is_arrayright_operand is array if left_operand is array
{dimension_index_1}_is_not_equal_to_{dimension_index_2}dimension_index_1 is not equal to dimension_index_2
every_dimension_size_of_{target}_is_less_than_or_equal_to_the_corresponding_value_of_array_{shape}Every dimension size of target is less than or equal to the corresponding value of array shape
{dimension_index}_is_less_than_or_equal_to_{input}_number_of_dimensionsdimension_index is less than or equal to input number of dimensions
{random_number}_shape_is_{shape}random_number shape is shape
{right_operand}_shape_size_is_less_than_or_equal_to_{left_operand}_shape_sizeright_operand shape size is less than or equal to left_operand shape size
{output}_shape_is_the_same_as_{input}output shape is the same as input
{one_hot_index}_has_one_more_dimension_than_{text}one_hot_index has one more dimension than text
every_dimension_size_of_{left_operand}_is_equal_to_the_corresponding_dimension_size_of_{right_operand}_except_last_two_dimensionsEvery dimension size of left_operand is equal to the corresponding dimension size of right_operand except last two dimensions
{target}_shape_size_is_less_than_or_equal_to_{shape}_sizetarget shape size is less than or equal to shape size
every_dimension_size_of_{target}_is_less_than_or_equal_to_the_corresponding_dimension_size_of_resultEvery dimension size of target is less than or equal to the corresponding dimension size of result
{start_index}_is_less_than_{end_index}start_index is less than end_index
{derivative}_shape_is_the_same_as_{wrt_input}_globally_accessed_dataderivative shape is the same as wrt_input globally accessed data
{select_indices}_shape_is_the_same_as_{array}_shape_with_dimension_at_index_{dimension_index}_removedselected_indices shape is the same as array shape with dimension at index dimension_index removed
size_of_last_dimension_of_{left_operand}_is_equal_to_size_of_second_last_dimension_of_{right_operand}_if_{right_operand}_has_more_than_one_dimensionSize of last dimension of left_operand is equal to size of second last dimension of right_operand if right_operand has more than one dimension