Shortcuts

mmengine.utils.tuple_cast

mmengine.utils.tuple_cast(inputs, dst_type)[source]

Cast elements of an iterable object into a tuple of some type.

A partial method of iter_cast().