Skip to content

Commit

Permalink
Adds missing struct keyword to text_embedder_cosing_similarity si…
Browse files Browse the repository at this point in the history
…gnature

PiperOrigin-RevId: 602487160
  • Loading branch information
MediaPipe Team authored and copybara-github committed Jan 29, 2024
1 parent 6feb77f commit 59b6f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mediapipe/tasks/c/text/text_embedder/text_embedder.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ MP_EXPORT int text_embedder_close(void* embedder, char** error_msg);
// 0.
//
// [1]: https://en.wikipedia.org/wiki/Cosine_similarity
MP_EXPORT int text_embedder_cosine_similarity(const Embedding& u,
const Embedding& v,
MP_EXPORT int text_embedder_cosine_similarity(const struct Embedding& u,
const struct Embedding& v,
double* similarity,
char** error_msg);

Expand Down

0 comments on commit 59b6f0a

Please sign in to comment.