#pragma once #include namespace torch::jit { class backend_preprocess_register { std::string backend_name_; public: backend_preprocess_register( const std::string& name, const detail::BackendPreprocessFunction& preprocess) : backend_name_(name) { detail::registerBackendPreprocessFunction(name, preprocess); } }; } // namespace torch::jit