torch_ecg.utils.str2bool#
- torch_ecg.utils.str2bool(v: str | bool | None, *, default: bool = False, strict: bool = True) bool[source]#
Converts a “boolean” value possibly in the format of
strtobool.Modified from [1].
- Parameters:
- Returns:
v in the format of a bool.
- Return type:
References