Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit e459ed9

Browse files
authored
Fix NDEBUG build (#217)
The C++ assert macro is only active during a build with NDEBUG, so we never caught it in functorch CI
1 parent e690c82 commit e459ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functorch/csrc/CompileCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ struct CompileResult : public CompileResultBase {
356356
/// Set vector of (arg, dim) pairs that indicate from which argument/dimension
357357
/// to extract the output size.
358358
void setShapeFrom(const std::vector<std::pair<int, int>>& indices) {
359-
assert(indices.shape() <= MAX_DIMS);
359+
assert(indices.size() <= MAX_DIMS);
360360
shapeFrom_ = indices;
361361
}
362362

0 commit comments

Comments
 (0)