//////////////////////////////////////////////////////////////////////////////// // Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved // Unauthorized copying of this file, via any medium is strictly prohibited. // Proprietary and confidential. //////////////////////////////////////////////////////////////////////////////// #pragma once #include #include #include #include #include class DataGenBase; using DataGenPtr = std::shared_ptr; extern DataGenPtr GetGenerateFactory(const std::string &gen_type); class DataGenBase { public: virtual void GenData(const int &dim, const int &nb, const int &nq, float *xb, float *xq, long *ids, const int &k, long *gt_ids, float *gt_dis); virtual void GenData(const int &dim, const int &nb, const int &nq, std::vector &xb, std::vector &xq, std::vector &ids, const int &k, std::vector >_ids, std::vector >_dis); }; //class SanityCheck : public DataGenBase { // public: // void GenData(const int &dim, const int &nb, const int &nq, float *xb, float *xq, long *ids, // const int &k, long *gt_ids, float *gt_dis) override; //};