Download tests/checker/checker.h from replicate/gemm: direct link, hf CLI and curl.
- Browser
- Download file 775 Bytes
-
https://huggingface.co/replicate/gemm/resolve/main/tests/checker/checker.h
- Command line
-
hf download hf://replicate/gemm/tests/checker/checker.h
-
curl -L -o checker.h https://huggingface.co/replicate/gemm/resolve/main/tests/checker/checker.h
775 Bytes
| enum class CheckerMode { | |
| kElementWise, | |
| kRowIndex, | |
| kJustDump, | |
| }; | |
| struct Checkee { | |
| torch::Tensor *tensor; | |
| CheckerMode mode; | |
| std::string name; | |
| }; | |
| void case_initialize(); | |
| int get_params_count(); | |
| void *case_get_input(int index); | |
| std::vector<Checkee> case_run_kernel(void *input, PerfMetrics* metrics); | |
| std::vector<Checkee> case_run_ref_kernel(void *input); | |
| const char *case_get_name(); | |
| void get_error_tolerance(float *rtol, float *atol); | |
| void case_destroy(void *input); | |
| CheckerMode get_checker_mode(); | |
| // using OutputData = torch::Tensor; | |
| // void ref_kernel(const BlockwiseMatmulInputs &data); | |
| // BlockwiseMatmulInputs generate_input(int m, int n, int k, int seed); |