Skip to content

Commit 571b72b

Browse files
committed
deleted unused ImportNodeGeneric()
Signed-off-by: Soren Lassen <[email protected]>
1 parent 25ff93f commit 571b72b

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/Builder/FrontendDialectTransformer.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -440,32 +440,6 @@ class FrontendGenImpl {
440440
return builder_.getFunctionType(argTypes, retTys);
441441
}
442442

443-
void ImportNodeGeneric(const onnx::NodeProto &node) {
444-
std::vector<Value> inputs;
445-
for (const auto &item : node.input()) {
446-
if (const Value *valuePtr = frontend_symbols_.GetByOnnxName(item)) {
447-
inputs.push_back(*valuePtr);
448-
}
449-
}
450-
OperationState result(UnknownLoc(), "frontend." + node.op_type());
451-
for (auto item : node.output()) {
452-
result.addTypes(UnrankedTensorType::get(builder_.getF32Type()));
453-
}
454-
result.addOperands(inputs);
455-
result.addAttributes(ImportNodeAttributes(node));
456-
// Create corresponding regions for graph attributes.
457-
for (const auto &attr : node.attribute())
458-
// Ignore subgraph attributes, as they will be imported as regions.
459-
if (attr.type() == onnx::AttributeProto_AttributeType_GRAPH)
460-
result.addRegion();
461-
462-
auto op = builder_.create(result);
463-
for (int i = 0; i < node.output().size(); i++) {
464-
auto r = op->getResult(i);
465-
frontend_symbols_.AddMapping(node.output()[i], r);
466-
}
467-
}
468-
469443
static constexpr int MAX_TYPE = 20;
470444

471445
// Get these indices from TensorProto in

0 commit comments

Comments
 (0)