std::shared_ptr< ExternalContext > external_context()
BackendContext(const backend::train::ITrainableBackend *backend, std::unique_ptr< backend::train::TrainableContextData > &&data, std::shared_ptr< backend::train::ITensorRegistry > tensor_registry=nullptr, std::shared_ptr< TensorBuilder > tensor_builder=nullptr, std::shared_ptr< KernelGenerator > kernel_gen=nullptr)
backend::train::FunctionMap gen() override
std::shared_ptr< KernelGenerator > kernel_gen
TrainableBackendContext(const ITrainableBackend *backend, std::unique_ptr< TrainableContextData > &&tdata, std::shared_ptr< ITensorRegistry > tensor_registry=nullptr)
std::shared_ptr< ITensorRegistry > tensor_registry()
const ITrainableBackend * backend() const
const TrainableContextData * data() const