tests : fix test-grad0

ggml-ci
This commit is contained in:
Georgi Gerganov 2023-12-21 21:33:57 +02:00
parent 36c3f41f66
commit b784f881c3
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -881,7 +881,7 @@ int main(int argc, const char ** argv) {
// scale
{
srand(seed);
const int nargs = 2;
const int nargs = 1;
int64_t ne2[4];
ne2[0] = 1;
@ -892,7 +892,6 @@ int main(int argc, const char ** argv) {
const float s = -1.0f + 2.0f*frand();
ggml_set_param(ctx0, x[0]);
ggml_set_param(ctx0, x[1]);
struct ggml_tensor * f = ggml_sum(ctx0, ggml_scale(ctx0, x[0], s));