mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-30 13:53:03 +01:00
tests : fix test-grad0
ggml-ci
This commit is contained in:
parent
36c3f41f66
commit
b784f881c3
@ -881,7 +881,7 @@ int main(int argc, const char ** argv) {
|
|||||||
// scale
|
// scale
|
||||||
{
|
{
|
||||||
srand(seed);
|
srand(seed);
|
||||||
const int nargs = 2;
|
const int nargs = 1;
|
||||||
|
|
||||||
int64_t ne2[4];
|
int64_t ne2[4];
|
||||||
ne2[0] = 1;
|
ne2[0] = 1;
|
||||||
@ -892,7 +892,6 @@ int main(int argc, const char ** argv) {
|
|||||||
const float s = -1.0f + 2.0f*frand();
|
const float s = -1.0f + 2.0f*frand();
|
||||||
|
|
||||||
ggml_set_param(ctx0, x[0]);
|
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));
|
struct ggml_tensor * f = ggml_sum(ctx0, ggml_scale(ctx0, x[0], s));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user