| namespace turbomind { | |
| class InputProcessor { | |
| public: | |
| ~InputProcessor(); | |
| InputProcessor(const EngineParam& engine, const ModelParam& model, int phases); | |
| void Run(BatchOp op, int phase, TensorMap& env); | |
| void PatchEmbedding(int phase, Tensor& embeds, BatchCopy& copy); | |
| private: | |
| struct Impl; | |
| std::unique_ptr<Impl> impl_; | |
| }; | |
| } // namespace turbomind | |