46 {
48 const auto &operands =
data.graph->operands();
49 const auto is_linear_executor =
data.is_linear_executor;
50
51 auto context = std::make_unique<acl_cl::BackendContext>(this, std::move(data));
53 auto tr = std::make_shared<acl_common::AclTensorRegistry<TensorManager>>(tm);
54 auto tb = std::make_shared<TensorBuilder>(operands, tm);
55 context->tensor_registry = tr;
56 context->tensor_builder = tb;
57 context->constant_initializer = std::make_shared<ConstantInitializer>(operands, tr);
58 context->kernel_gen = std::make_shared<KernelGenerator>(graph, tb, tr);
59 context->optimizer = std::make_shared<Optimizer>(context.get());
60 return context;
61 }
TensorManager * createTensorManager(bool is_linear_executor)