Skip to content

Commit 535dcfb

Browse files
mztanMeng Tan
andauthored
Increase constructTuple max inputs to 12 (pytorch#16503)
Summary: Currently, `constructTuple` supports at most 10 inputs. This diff increases that maximum to 12 inputs. Differential Revision: D90297949 Co-authored-by: Meng Tan <mengtan@meta.com>
1 parent 8e8d97e commit 535dcfb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

extension/pytree/aten_util/ivalue_util.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,12 @@ IValue constructTuple(const std::vector<IValue>& ivalues) {
8989
return create_tuple<9>(ivalues);
9090
case 10:
9191
return create_tuple<10>(ivalues);
92+
case 11:
93+
return create_tuple<11>(ivalues);
94+
case 12:
95+
return create_tuple<12>(ivalues);
9296
}
93-
ET_ASSERT_UNREACHABLE_MSG("Supports at most 10 inputs");
97+
ET_ASSERT_UNREACHABLE_MSG("Supports at most 12 inputs");
9498
return {};
9599
}
96100

0 commit comments

Comments
 (0)