Skip to content

Commit 38de7ec

Browse files
committed
added llama_sampler_init
1 parent 933d601 commit 38de7ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/llama-sampling.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,12 +1757,12 @@ static struct llama_sampler_i llama_sampler_top_n_sigma_i = {
17571757
};
17581758

17591759
struct llama_sampler * llama_sampler_init_top_n_sigma(float n) {
1760-
return new llama_sampler {
1760+
return llama_sampler_init(
17611761
/* .iface = */ &llama_sampler_top_n_sigma_i,
17621762
/* .ctx = */ new llama_sampler_top_n_sigma {
17631763
/* .n = */ n,
1764-
},
1765-
};
1764+
}
1765+
);
17661766
}
17671767

17681768
// DRY

0 commit comments

Comments
 (0)