We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75a6fbc commit b6555a9Copy full SHA for b6555a9
nn/base.py
@@ -168,9 +168,14 @@ def __deepcopy__(self, memo):
168
@property
169
def shape(self) -> Set[Dim]:
170
"""
171
- :return: shape (set of dims)
+ :return: shape, as a set of dims.
172
+ The order must not play a role
173
+ (RETURNN principles: https://github.com/rwth-i6/returnn/wiki/RETURNN-principles),
174
+ thus return a set.
175
+ Note that we do not include any implicit dims here.
176
+ Also see :func:`verify_out_shape` and https://github.com/rwth-i6/returnn/issues/1153.
177
- return self.data.dim_tags_set_implicit
178
+ return set(self.data.dim_tags)
179
180
181
def shape_ordered(self) -> Tuple[Dim]:
0 commit comments