main-mtl.h 500 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. struct ggml_context;
  3. struct ggml_cgraph;
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. struct ggml_mtl_context;
  8. struct ggml_mtl_context * mnist_mtl_init(
  9. struct ggml_context * ctx_data,
  10. struct ggml_context * ctx_eval,
  11. struct ggml_context * ctx_work,
  12. struct ggml_cgraph * gf);
  13. void mnist_mtl_free(struct ggml_mtl_context * ctx);
  14. int mnist_mtl_eval(
  15. struct ggml_mtl_context * ctx,
  16. struct ggml_cgraph * gf);
  17. #ifdef __cplusplus
  18. }
  19. #endif