Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/chex
/ functions
Functions
578 in github.com/google-deepmind/chex
⨍
Functions
578
◇
Types & classes
103
↳
Endpoints
2
Method
test_docstring_example
(self)
chex/_src/asserts_chexify_test.py:220
Method
test_docstring_examples
(self)
chex/_src/dimensions_test.py:36
Method
test_easy
(self, x_shape, seed)
chex/_src/asserts_test.py:1807
Method
test_easy_with_stop_gradient
(self, x_shape, seed)
chex/_src/asserts_test.py:1813
Method
test_ellipsis_should_fail
(self, array, expected_shape)
chex/_src/asserts_test.py:530
Method
test_ellipsis_should_pass
(self, arrays, expected_size)
chex/_src/asserts_test.py:368
Method
test_ellipsis_should_pass
(self, array, expected_shape)
chex/_src/asserts_test.py:514
Method
test_emplace
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:674
Method
test_emplace
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:696
Method
test_enable_disable_asserts
(self)
chex/_src/asserts_test.py:62
Method
test_equal_shape_at_dims_should_fail
(self, shapes, dims)
chex/_src/asserts_test.py:430
Method
test_equal_shape_at_dims_should_pass
(self, shapes, dims)
chex/_src/asserts_test.py:420
Method
test_equal_shape_prefix_should_fail
(self, arrays)
chex/_src/asserts_test.py:407
Method
test_equal_shape_prefix_should_pass
(self, arrays)
chex/_src/asserts_test.py:399
Method
test_equal_shape_should_fail
(self, arrays)
chex/_src/asserts_test.py:380
Method
test_equal_shape_should_pass
(self, arrays)
chex/_src/asserts_test.py:391
Method
test_equal_size_should_fail
(self, arrays)
chex/_src/asserts_test.py:304
Method
test_equal_size_should_pass
(self, arrays)
chex/_src/asserts_test.py:316
Method
test_equivalence
(fn)
chex/_src/fake_test.py:377
Method
test_error
(self)
chex/_src/variants_test.py:256
Method
test_failure
(self)
chex/_src/variants_test.py:252
Method
test_failure
(self)
chex/_src/variants_test.py:285
Method
test_failure
(self)
chex/_src/variants_test.py:313
Method
test_fake_jit
(self, fake_kwargs, is_jitted)
chex/_src/fake_test.py:114
Method
test_fake_parallel_axis
(self)
chex/_src/fake_test.py:412
Method
test_fake_pmap_
(self, is_pmapped, jit_result)
chex/_src/fake_test.py:135
Method
test_fake_pmap_axis_name
(self)
chex/_src/fake_test.py:152
Method
test_flatten_fail
(self, named_shape, error_message)
chex/_src/dimensions_test.py:140
Method
test_flatten_is_leaf
(self, is_mappable)
chex/_src/dataclass_test.py:610
Method
test_flatten_ok
(self, named_shape, expected_shape)
chex/_src/dimensions_test.py:123
Method
test_flatten_respects_post_init
(self)
chex/_src/dataclass_test.py:729
Method
test_flatten_roundtrip_ordering
(self, dcls)
chex/_src/dataclass_test.py:722
Method
test_format
(self, include_default_msg, include_custom_msg, exc_type)
chex/_src/asserts_internal_test.py:59
Method
test_frozen_dataclass_raise_error
(self)
chex/_src/dataclass_test.py:483
Method
test_generic_dataclass
(self, mappable)
chex/_src/dataclass_test.py:668
Method
test_get_and_set_state
(self, frozen)
chex/_src/dataclass_test.py:495
Method
test_get_exception
(self, k, e, m)
chex/_src/dimensions_test.py:89
Method
test_get_literals
(self)
chex/_src/dimensions_test.py:67
Method
test_get_wildcard
(self)
chex/_src/dimensions_test.py:60
Method
test_gpu_assert
(self)
chex/_src/asserts_test.py:1757
Method
test_hard
(self, x_shape, seed)
chex/_src/asserts_test.py:1819
Method
test_hard_with_stop_gradient
(self, x_shape, seed)
chex/_src/asserts_test.py:1841
Method
test_ignore_argnums
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:703
Method
test_ignores_explicitly_allowed_cpu_computation
(self)
chex/_src/restrict_backends_test.py:81
Method
test_ignores_explicitly_allowed_tpu_computation
(self)
chex/_src/restrict_backends_test.py:91
Method
test_ignores_implicitly_allowed_cpu_computation
(self)
chex/_src/restrict_backends_test.py:86
Method
test_ignores_implicitly_allowed_tpu_computation
(self)
chex/_src/restrict_backends_test.py:96
Method
test_import
(self)
chex/chex_test.py:24
Method
test_incorrect_ordering
(self)
chex/_src/asserts_test.py:177
Method
test_incorrect_wrapping_order_all_variants
(self)
chex/_src/variants_test.py:402
Method
test_incorrect_wrapping_order_named_all_variants
(self)
chex/_src/variants_test.py:386
Method
test_incorrect_wrapping_order_named_some_variants
(self)
chex/_src/variants_test.py:394
Method
test_incorrect_wrapping_order_some_variants
(self)
chex/_src/variants_test.py:410
Method
test_inheritance
(self, frozen)
chex/_src/dataclass_test.py:547
Method
test_inheritance
(self, base_classes)
chex/_src/variants_test.py:349
Method
test_inheritance_from_empty_frozen_base
(self)
chex/_src/dataclass_test.py:565
Method
test_inheritance_is_possible_thanks_to_kw_only
(self)
chex/_src/dataclass_test.py:460
Method
test_is_traceable
(self)
chex/_src/asserts_internal_test.py:30
Method
test_keys_and_values_override
(self, frozen)
chex/_src/dataclass_test.py:747
Method
test_keys_and_values_type
(self, frozen)
chex/_src/dataclass_test.py:735
Method
test_leaf_shape_should_fail_wrong_length
(self)
chex/_src/asserts_test.py:1586
Method
test_log_abs_fn_jitted
Tests simple jit transformation.
chex/_src/asserts_chexify_test.py:456
Method
test_log_abs_fn_jitted_nested_call
Tests nested jit transforms (calling).
chex/_src/asserts_chexify_test.py:509
Method
test_log_abs_fn_jitted_nested_wrap
Tests nested jit transforms (wrapping).
chex/_src/asserts_chexify_test.py:480
Method
test_log_abs_fn_jitted_vmapped
Tests vmap transform.
chex/_src/asserts_chexify_test.py:562
Method
test_log_abs_fn_pmapped
Tests pmap transform.
chex/_src/asserts_chexify_test.py:537
Method
test_many_variants
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:561
Method
test_mappable_eq_override
(self)
chex/_src/dataclass_test.py:678
Method
test_multiple_ellipses
(self, array, expected_shape)
chex/_src/asserts_test.py:544
Function
test_named_scalar_parameters
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:147
Function
test_ndarray_named_parameters
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:182
Function
test_ndarray_parameters
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:168
Method
test_nested_chexification
Tests nested wrapping.
chex/_src/asserts_chexify_test.py:132
Method
test_nested_functions
(self)
chex/_src/asserts_test.py:233
Method
test_no_variants
(self)
chex/_src/variants_test.py:441
Method
test_noop
(self)
chex/_src/variants_test.py:425
Method
test_noop
(self)
chex/_src/variants_test.py:448
Method
test_not_less_than
(self, devtype)
chex/_src/asserts_test.py:1738
Method
test_on_call_of_transformed_function
(self)
chex/_src/fake_test.py:445
Method
test_parallel_ops_equivalence
Test equivalence between parallel operations using pmap and vmap.
chex/_src/fake_test.py:371
Method
test_partial_python_fn
(self)
chex/_src/asserts_chexify_test.py:281
Method
test_pmap
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:752
Method
test_pmap_and_jit
(self, fake_kwargs, is_pmapped, is_jitted)
chex/_src/fake_test.py:184
Method
test_pmap_in_axes
(self)
chex/_src/variants_test.py:893
Method
test_pmap_static_argnums
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:822
Method
test_pmap_static_argnums_zero
(self)
chex/_src/variants_test.py:860
Method
test_pmap_vmapped_fn
(self, arg_0, arg_1, expected)
chex/_src/variants_test.py:781
Method
test_pmap_with_complex_static_broadcasted_object
(self, static_argnums)
chex/_src/fake_test.py:268
Method
test_pmap_wrong_axis_size
(self)
chex/_src/variants_test.py:925
Method
test_product
(self)
chex/_src/variants_test.py:205
Method
test_pytypes_pass
(self)
chex/_src/asserts_test.py:358
Method
test_pytypes_pass
(self, shape)
chex/_src/asserts_test.py:496
Method
test_raises_if_contradictory_restrictions_specified
(self)
chex/_src/restrict_backends_test.py:106
Method
test_raises_if_no_restrictions_specified
(self)
chex/_src/restrict_backends_test.py:101
Method
test_rank_should_fail_array_expectations
(self)
chex/_src/asserts_test.py:583
Method
test_rank_should_fail_single
(self, array, rank)
chex/_src/asserts_test.py:605
Method
test_rank_should_fail_wrong_expectation_structure
(self)
chex/_src/asserts_test.py:589
Method
test_rank_should_fail_wrong_length
(self, array, rank)
chex/_src/asserts_test.py:627
Method
test_rank_should_pass_multiple_options
(self, arrays, ranks)
chex/_src/asserts_test.py:657
Method
test_rank_should_pass_repeated_input
(self, array, rank)
chex/_src/asserts_test.py:648
← previous
next →
401–500 of 578, ranked by callers