Skip to content

Commit

Permalink
update check non negative
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmovic committed May 29, 2024
1 parent 0a78cdc commit e08c44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oneflow/core/functional/impl/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Maybe<void> CheckInplaceShapeCanExpandTo(const Shape& shape, const Shape& expand
return Maybe<void>::Ok();
}

Maybe<void> CheckSizeNonNegative(const Shape& shape) {
inline Maybe<void> CheckSizeNonNegative(const Shape& shape) {
for (const auto& s : shape) {
CHECK_OR_THROW(s >= 0)
<< "Trying to create tensor with negative dimension " << s << ": "
Expand Down

0 comments on commit e08c44d

Please sign in to comment.