You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

llama.extensions.imodelparamsextensions.md 1.0 kB

12345678910111213141516171819202122232425262728293031323334353637
  1. # IModelParamsExtensions
  2. Namespace: LLama.Extensions
  3. Extention methods to the IModelParams interface
  4. ```csharp
  5. public static class IModelParamsExtensions
  6. ```
  7. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [IModelParamsExtensions](./llama.extensions.imodelparamsextensions.md)
  8. ## Methods
  9. ### **ToLlamaModelParams(IModelParams, LLamaModelParams&)**
  10. Convert the given `IModelParams` into a `LLamaModelParams`
  11. ```csharp
  12. public static IDisposable ToLlamaModelParams(IModelParams params, LLamaModelParams& result)
  13. ```
  14. #### Parameters
  15. `params` [IModelParams](./llama.abstractions.imodelparams.md)<br>
  16. `result` [LLamaModelParams&](./llama.native.llamamodelparams&.md)<br>
  17. #### Returns
  18. [IDisposable](https://docs.microsoft.com/en-us/dotnet/api/system.idisposable)<br>
  19. #### Exceptions
  20. [FileNotFoundException](https://docs.microsoft.com/en-us/dotnet/api/system.io.filenotfoundexception)<br>
  21. [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception)<br>