Skip to content

Commit

Permalink
MetaDataset get_data_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus1806 committed Nov 23, 2023
1 parent c230d14 commit 4d2f9ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions returnn/datasets/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from __future__ import annotations

from typing import List
from returnn.datasets.basic import Dataset, DatasetSeq, init_dataset, convert_data_dims
from .cached2 import CachedDataset2
from returnn.util.basic import NumbersDict, load_json
Expand Down Expand Up @@ -533,6 +534,10 @@ def get_tag(self, sorted_seq_idx):
"""
return self.seq_list_ordered[self.default_dataset_key][sorted_seq_idx]

def get_data_keys(self) -> List[str]:
"""data keys"""
return sorted(self.data_keys)

def get_target_list(self):
"""
:rtype: list[str]
Expand Down

0 comments on commit 4d2f9ea

Please sign in to comment.