diff options
author | Spencer Sutton <spencersutton@users.noreply.github.com> | 2023-07-11 12:31:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 19:31:10 +0300 |
commit | 5bf2a2771886ee86137e01dbc7492f78fb392066 (patch) | |
tree | 740fd968318c00cfc4c001365f42d4e2cdc7f760 /ggml.h | |
parent | c9c74b4e3f9dcfab8b0032749ff8a579ab4e4d8d (diff) |
ggml : remove src0 and src1 from ggml_tensor and rename opt to src (#2178)
* Add ggml changes
* Update train-text-from-scratch for change
* mpi : adapt to new ggml_tensor->src
---------
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'ggml.h')
-rw-r--r-- | ggml.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -132,10 +132,10 @@ // { // struct ggml_tensor * a = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, 2, 3); // -// // a[1, 2] = 1.0f; +// // a[2, 1] = 1.0f; // *(float *) ((char *) a->data + 2*a->nb[1] + 1*a->nb[0]) = 1.0f; // -// // a[2, 0] = 2.0f; +// // a[0, 2] = 2.0f; // *(float *) ((char *) a->data + 0*a->nb[1] + 2*a->nb[0]) = 2.0f; // // ... @@ -197,7 +197,7 @@ #define GGML_MAX_NODES 4096 #define GGML_MAX_PARAMS 256 #define GGML_MAX_CONTEXTS 64 -#define GGML_MAX_OPT 4 +#define GGML_MAX_SRC 6 #define GGML_MAX_NAME 48 #define GGML_DEFAULT_N_THREADS 4 @@ -414,9 +414,7 @@ extern "C" { bool is_param; struct ggml_tensor * grad; - struct ggml_tensor * src0; - struct ggml_tensor * src1; - struct ggml_tensor * opt[GGML_MAX_OPT]; + struct ggml_tensor * src[GGML_MAX_SRC]; // performance int perf_runs; |