def _get_jagged_dynamic_bound_dims(jagged_int_var: JaggedIntVar) -> Set[IntVar]:
    """Get the set of dynamic dims in JaggedIntVar's JaggedDims' min / max values."""
    return set(
        [
            dim.min_value()
            for dim in jagged_int_var.jagged_dims()
            if type(dim.min_value()) == IntVar
        ]
        + [
            dim.max_value()
            for dim in jagged_int_var.jagged_dims()
            if type(dim.max_value()) == IntVar
        ]
    )
Get the set of dynamic dims in JaggedIntVar's JaggedDims' min / max values.
python/aitemplate/backend/cuda/view_ops/make_jagged.py