Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: chentong319 <[email protected]>
  • Loading branch information
chentong319 committed Dec 2, 2024
1 parent e68c957 commit 1b7f35b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dialect/ONNX/DialectBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ TensorType OnnxBuilder::toTensor(Type input) const {
}

TypeRange OnnxBuilder::toTensors(TypeRange inputs) const {
//assert(inputs.size() >= 2 && "Expect at least two inputs");
// Sometimes, the size of inputs could be 1
// assert(inputs.size() >= 2 && "Expect at least two inputs");
if (llvm::all_of(inputs, [](Type t) { return (mlir::isa<TensorType>(t)); }))
return inputs;
assert(llvm::all_of(inputs, [](Type t) {
Expand Down

0 comments on commit 1b7f35b

Please sign in to comment.