43 const std::shared_ptr<TensorRegistry> &tensor_reg,
44 const std::shared_ptr<ExternalContext> &external_context,
66 std::shared_ptr<TensorRegistry> _tensor_reg;
67 const std::shared_ptr<ExternalContext> _external_context;
69 std::vector<std::unique_ptr<exec::train::IGradientApplier>> _update_funcs;
70 std::unordered_map<const ir::IOperation *, ir::OperationIndex> _node_to_idx;