Skip to content

Commit

Permalink
If None provided for first dimension, change to fixed dim
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverholworthy committed Mar 7, 2023
1 parent 18c8d97 commit b329001
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions merlin/dtypes/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def __post_init__(self):
if self.dims is not None:
new_dims = []
for i, dim in enumerate(self.dims):
if i == 0 and dim is None:
dim = -1
new_dim = Dimension(dim)
new_dims.append(new_dim)

Expand Down

0 comments on commit b329001

Please sign in to comment.