Skip to content

Commit

Permalink
tests : fix test-grad0
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Dec 21, 2023
1 parent 36c3f41 commit da2ec71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test-grad0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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));

Expand Down

0 comments on commit da2ec71

Please sign in to comment.