Skip to content

Commit 6d49e00

Browse files
committed
fixed for comments
1 parent d5272b3 commit 6d49e00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct ggml_tensor * reciprocal(ggml_context * ctx, struct ggml_tensor * x) {
7979
TTS_ASSERT(x->ne[0] == 1);
8080
static constexpr float one = 1.0f;
8181
ggml_tensor * numerator = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, 1, x->ne[1]);
82-
// stride hack so that the scalar numerator can be divided by x;
82+
// stride trick so that the scalar numerator can be divided by x.
8383
numerator->nb[1] = 0;
8484
numerator->data = const_cast<float *>(&one);
8585
return ggml_div(ctx, numerator, x);

src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void uv_noise_compute(struct ggml_tensor * dst, const struct ggml_tensor * a, co
5050
// This is a custom op for logit correction in the Dia model.
5151
void cfg_scale(struct ggml_tensor * dst, const struct ggml_tensor * a, const struct ggml_tensor * b, int ith, int nth, void * userdata);
5252

53-
struct ggml_tensor * ggml_reciprocal(ggml_context * ctx, struct ggml_tensor * x);
53+
struct ggml_tensor * reciprocal(ggml_context * ctx, struct ggml_tensor * x);
5454

5555
bool has_suffix(std::string value, std::string suffix);
5656
bool has_prefix(std::string value, std::string prefix);

0 commit comments

Comments
 (0)