// Just copy input tensor to the output one.
auto prev_ops = op.getPrevNodes();
assert(prev_ops.size() == 1);
- auto in_op = prev_ops[0].op;
+ Operation* in_op = prev_ops[0].op;
// Get input tensor identifier in the generated artifact.
- auto in = AF::id(tensorName(in_op));
+ std::shared_ptr<ArtifactId> in = AF::id(tensorName(in_op));
// Generate output tensor description in the DOM.
- auto out = genTensor(op, op.getOutputShape(0));
-
- // Create a CLCopy instance.
- auto copy_layer_var = _artifactClass->var(false, "arm_compute::CLCopy",
- out->name() + "_copy_layer");
- auto copy_layer = copy_layer_var->use();
-
- // Call the: copy_layer.configure(&in, &out);
- _constrBlock->call("configure", {AF::ref(in), AF::ref(out)}, copy_layer);
+ shared_ptr<ArtifactId> out = AF::id(tensorName(&op));
- // Call the: copy_layer.run();
- _infBlock->call("run", {}, copy_layer);
+ _constrBlock->var("arm_compute::CLTensor&", out->name(), {}, {in});
}
void AclCppOpGenerator::visit(ops::TanhOp& op) {