Skip to content

Commit da2ec71

Browse files
committed
tests : fix test-grad0
1 parent 36c3f41 commit da2ec71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test-grad0.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ int main(int argc, const char ** argv) {
881881
// scale
882882
{
883883
srand(seed);
884-
const int nargs = 2;
884+
const int nargs = 1;
885885

886886
int64_t ne2[4];
887887
ne2[0] = 1;
@@ -892,7 +892,6 @@ int main(int argc, const char ** argv) {
892892
const float s = -1.0f + 2.0f*frand();
893893

894894
ggml_set_param(ctx0, x[0]);
895-
ggml_set_param(ctx0, x[1]);
896895

897896
struct ggml_tensor * f = ggml_sum(ctx0, ggml_scale(ctx0, x[0], s));
898897

0 commit comments

Comments
 (0)