Skip to content

Commit cff9fc2

Browse files
claudiamurialdoclaudiamurialdo
andcommitted
Add IsEmpty() method for GxEmbedding. (#1201)
Co-authored-by: claudiamurialdo <c.murialdo@globant.com> (cherry picked from commit 1c2bcf2)
1 parent 86984be commit cff9fc2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dotnet/src/dotnetcore/GxClasses/Domain/GxEmbedding.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ internal GxEmbedding(float[] embedding)
2626
{
2727
_embedding = embedding;
2828
}
29-
29+
public bool IsEmpty()
30+
{
31+
return _embedding.IsEmpty;
32+
}
3033
internal static GxEmbedding Empty(string model, int dimensions)
3134
{
3235
return new GxEmbedding(model, dimensions);

0 commit comments

Comments
 (0)