src/redcat/batchdict.py
File batchdict.py
has 589 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
Wontfix
r"""Contain the implementation of the ``BatchDict``."""
from __future__ import annotations
__all__ = ["BatchDict", "check_same_batch_size", "check_same_keys", "get_seq_lens"]
BatchDict
has 37 functions (exceeds 20 allowed). Consider refactoring. Wontfix
Wontfix
class BatchDict(BaseBatch[dict[Hashable, TBaseBatch]]):
r"""Implement a batch object to represent a dictionary of batches.
Args:
data: Specifies the dictionary of batches.