There was an error while loading. Please reload this page.
1 parent 517acdf commit 8bb54a0Copy full SHA for 8bb54a0
1 file changed
returnn/tf/util/data.py
@@ -3034,6 +3034,13 @@ def get_batch_dim(self):
3034
batch = batch.copy_set_beam(self.beam)
3035
return batch.dim
3036
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
+
3044
def get_static_batch_dim(self):
3045
"""
3046
:rtype: int|None
0 commit comments