def _dynamic_slice(operand, *start_indices, slice_sizes, _in_avals: Sequence[core.ShapedArray], _out_aval: core.ShapedArray):
    if (not _enable_xla):
        raise _xla_disabled_error('dynamic_slice')
    res = tfxla.dynamic_slice(operand, tf.stack(start_indices), size_indices=_eval_shape(slice_sizes))
    res.set_shape(_aval_to_tf_shape(_out_aval))
    return res
def _dynamic_slice(operand, *start_indices, slice_sizes, _in_avals: Sequence[core.ShapedArray], _out_aval: core.ShapedArray):
    if (not _enable_xla):
        raise _xla_disabled_error('dynamic_slice')
    res = tfxla.dynamic_slice(operand, tf.stack(start_indices), size_indices=_eval_shape(slice_sizes))
    res.set_shape(_aval_to_tf_shape(_out_aval))
    return res