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.
|
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- using System.Text;
-
- namespace LLama.Native
- {
- public class SafeLLamaContextHandle: SafeLLamaHandleBase
- {
- protected SafeLLamaContextHandle()
- {
- }
-
- public SafeLLamaContextHandle(IntPtr handle)
- : base(handle)
- {
- }
-
- protected override bool ReleaseHandle()
- {
- NativeApi.llama_free(handle);
- SetHandle(IntPtr.Zero);
- return true;
- }
- }
- }
|