Make ggml-common.h private

This commit is contained in:
huafengchun 2024-07-17 01:04:15 +00:00
parent 1115d2f836
commit 96e09b979d
3 changed files with 8 additions and 3 deletions

View file

@ -22,9 +22,6 @@
#pragma once
#define GGML_COMMON_DECL_C
#include "../src/ggml-common.h"
#include "ggml-backend.h"
#include "ggml.h"

View file

@ -33,6 +33,10 @@
#include "ggml-cann/aclnn_ops.h"
#include "ggml-cann/common.h"
#define GGML_COMMON_DECL_C
#include "ggml-common.h"
/**
* @brief Handles CANN errors by printing an error message and aborting.
*

View file

@ -55,6 +55,10 @@
#include "kernels/ascendc_kernels.h"
#define GGML_COMMON_DECL_C
#include "../ggml-common.h"
/**
* @brief Repeats elements of a tensor along each dimension according to the
* specified repeat array.