50 auto context = std::make_unique<BackendContext>(
this, std::move(data));
68 auto tr = std::make_shared<TensorRegistry>();
69 auto tb = std::make_shared<TensorBuilder>(tr);
70 context->tensor_registry = tr;
71 context->tensor_builder = tb;
72 context->kernel_gen = std::make_shared<KernelGenerator>(
73 *context->graph(), tb->dynamicTensorManager(), tr, context->external_context());
80 const auto &tgraph = *tdata.tgraph;
81 auto tr = std::make_shared<train::TensorRegistry>();
83 auto tdata_ptr = std::make_unique<backend::train::TrainableContextData>(std::move(tdata));
84 auto context = std::make_unique<train::BackendContext>(
this, std::move(tdata_ptr), tr);
87 std::make_shared<train::KernelGenerator>(tgraph, tr, context->external_context());