File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -440,32 +440,6 @@ class FrontendGenImpl {
440
440
return builder_.getFunctionType (argTypes, retTys);
441
441
}
442
442
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
-
469
443
static constexpr int MAX_TYPE = 20 ;
470
444
471
445
// Get these indices from TensorProto in
You can’t perform that action at this time.
0 commit comments