Skip to content

Commit

Permalink
auto format by CI
Browse files Browse the repository at this point in the history
  • Loading branch information
oneflow-ci-bot committed May 28, 2024
1 parent ad0986a commit 170a197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/oneflow/nn/modules/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def __init__(
self.device = flow.device(self.device)
self.requires_grad = requires_grad
size = _single(size)
assert (
all(s >= 0 for s in size)
assert all(
s >= 0 for s in size
), f"Trying to create tensor with negative dimension: {size}"
if dtype is None:
dtype = flow.get_default_dtype()
Expand Down

0 comments on commit 170a197

Please sign in to comment.