Browse Source

fix: remove the history commit of embedding length property.

tags/v0.5.1
Yaohui Liu 2 years ago
parent
commit
20b5363601
No known key found for this signature in database GPG Key ID: E86D01E1809BD23E
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      LLama/LLamaContext.cs

+ 0
- 14
LLama/LLamaContext.cs View File

@@ -55,20 +55,6 @@ namespace LLama
/// The encoding set for this model to deal with text input.
/// </summary>
public Encoding Encoding => _encoding;
/// <summary>
/// The embedding length of the model, also known as `n_embed`
/// </summary>
public int EmbeddingLength
{
get
{
if(_ctx is null)
{
throw new NullReferenceException("The native context has not been created in this model.");
}
return NativeApi.llama_n_embd(_ctx);
}
}

/// <summary>
///


Loading…
Cancel
Save