44 auto custom_kernel_builder = data.custom_kernel_builder;
45 auto &graph = *data.graph;
46 auto context = std::make_unique<BackendContext>(
this, std::move(data));
47 auto tr = std::make_shared<basic::TensorRegistry>();
48 auto tb = std::make_shared<TensorBuilder>(tr);
49 context->tensor_registry = tr;
50 context->tensor_builder = tb;
51 context->kernel_gen = std::make_shared<KernelGenerator>(graph, tb, tr, custom_kernel_builder,
52 context->external_context());