Skip to content

Commit c40790f

Browse files
Grain Teamcopybara-github
authored andcommitted
Internal
PiperOrigin-RevId: 842451645
1 parent b2d149d commit c40790f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

grain/_src/core/constants.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
# Index of the dataset from which to take the record. Only present when mixing.
2626
# Starts with 0.
2727
DATASET_INDEX = "_dataset_index"
28+
# Index of the dataset group from which to take the dataset. A group is defined
29+
# by a set of datasets having identical transformations. Only present when
30+
# mixing. Starts with 0.
31+
DATASET_GROUP_INDEX = "_dataset_group_index"
2832
# Epoch for the record. When mixing datasets this is the epoch over the dataset,
2933
# not the mixture. Starts with 1.
3034
EPOCH = "_epoch"
@@ -35,5 +39,5 @@
3539
RECORD = "_record"
3640

3741
META_FEATURES = frozenset(
38-
[INDEX, RECORD_KEY, DATASET_INDEX, EPOCH, SEED, RECORD]
42+
[INDEX, RECORD_KEY, DATASET_INDEX, DATASET_GROUP_INDEX, EPOCH, SEED, RECORD]
3943
)

0 commit comments

Comments
 (0)