diff --git a/ggml.c b/ggml.c index 18091e814..964a6b9c3 100644 --- a/ggml.c +++ b/ggml.c @@ -4592,9 +4592,9 @@ struct ggml_tensor * ggml_new_tensor_impl( /*.op =*/ GGML_OP_NONE, /*.op_params =*/ {0}, /*.is_param =*/ false, + /*.visited =*/ false, /*.grad =*/ NULL, /*.src =*/ { NULL }, - /*.visited =*/ false, /*.perf_runs =*/ 0, /*.perf_cycles =*/ 0, /*.perf_time_us =*/ 0, diff --git a/ggml.h b/ggml.h index ed6b36e23..3003901ac 100644 --- a/ggml.h +++ b/ggml.h @@ -422,13 +422,12 @@ extern "C" { // op params - allocated as int32_t for alignment int32_t op_params[GGML_MAX_OP_PARAMS / sizeof(uint32_t)]; - bool is_param; + uint32_t is_param:1; + uint32_t visited:1; // used to build graphs struct ggml_tensor * grad; struct ggml_tensor * src[GGML_MAX_SRC]; - bool visited; // used to build graphs - // performance int perf_runs; int64_t perf_cycles;