mirror of
https://github.com/ROCm/jax.git
synced 2025-04-18 21:06:06 +00:00

Shape polymorphism relies on a number of functions defined in core.py. Overtime we have accumulated some duplicate functionality in those functions. Here we do some cleanups: * remove symbolic_equal_dim and symbolic_equal_shape in favor of the newer definitely_equal and definitely_equal_shape * remove is_special_dim_size, which checks that a value is a dimension expression (not a constant). Some uses are replaced with `not is_constant_dim` and others with `is_dim`. * introduce concrete_dim_or_error to check that a value is a dimension