fix(eval): StreamingDataset does not have an __len__ method. (#251)

pull/256/head
Shuo Zhang 2023-08-31 15:29:04 +08:00 committed by GitHub
parent c70819af92
commit ba4deaeffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def evaluate_on_val_dls(
data_cfg = gpc.config.data
for val_name, val_dl in val_dls.items():
if len(val_dl) == 0 and verbose and not streaming:
if not streaming and len(val_dl) == 0 and verbose:
logger.info(f"Validation dataset: {val_name} is empty")
continue