Skip to content

Commit 8bb54a0

Browse files
committed
Data.get_batch_dim_tag
1 parent 517acdf commit 8bb54a0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

returnn/tf/util/data.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3034,6 +3034,13 @@ def get_batch_dim(self):
30343034
batch = batch.copy_set_beam(self.beam)
30353035
return batch.dim
30363036

3037+
def get_batch_dim_tag(self):
3038+
"""
3039+
:rtype: DimensionTag
3040+
"""
3041+
assert self.have_batch_axis()
3042+
return self.dim_tags[self.batch_dim_axis]
3043+
30373044
def get_static_batch_dim(self):
30383045
"""
30393046
:rtype: int|None

0 commit comments

Comments
 (0)