]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
tests : adjust to new timestep_embedding operator
authorGeorgi Gerganov <redacted>
Sat, 20 Sep 2025 10:16:10 +0000 (13:16 +0300)
committerGeorgi Gerganov <redacted>
Sat, 20 Sep 2025 10:33:50 +0000 (13:33 +0300)
tests/test-timestep_embedding.cpp

index a558659738f39809d33f46170e1637ebe8793b71..193eac86c1adf725db82667262e4546dc018185e 100644 (file)
@@ -56,9 +56,6 @@ struct ggml_tensor* new_timestep_embedding(struct ggml_context* ctx,
     // timesteps: [N,]
     // embedding: [dim, N]
     int actual_dim = dim;
-    if (dim % 2 != 0) {
-        actual_dim = dim + 1;
-    }
     struct ggml_tensor* embedding = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, actual_dim, timesteps->ne[0]);
     set_timestep_embedding(timesteps, embedding, dim, max_period);
     return embedding;