summaryrefslogtreecommitdiff
path: root/ggml.h
diff options
context:
space:
mode:
authorslaren <slarengh@gmail.com>2024-05-15 15:08:48 +0200
committerGitHub <noreply@github.com>2024-05-15 15:08:48 +0200
commit344f9126cc0d15891fde9472fe40b8572628ad7d (patch)
treead9ba84a6bda9581609af5114d684f6668b40532 /ggml.h
parent9a17ab914b0aa7353389c656a3f2a0f086726868 (diff)
ggml : tag ggml_tensor::backend as deprecated (#7290)
Diffstat (limited to 'ggml.h')
-rw-r--r--ggml.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ggml.h b/ggml.h
index 5e121604..8c13f4ba 100644
--- a/ggml.h
+++ b/ggml.h
@@ -565,7 +565,8 @@ extern "C" {
// n-dimensional tensor
struct ggml_tensor {
enum ggml_type type;
- enum ggml_backend_type backend;
+
+ GGML_DEPRECATED(enum ggml_backend_type backend, "use the buffer type to find the storage location of the tensor");
struct ggml_backend_buffer * buffer;