Skip to content

SafeLlavaImageEmbedHandle

Namespace: LLama.Native

A Reference to a llava Image Embed handle

public sealed class SafeLlavaImageEmbedHandle : SafeLLamaHandleBase, System.IDisposable

Inheritance ObjectCriticalFinalizerObjectSafeHandleSafeLLamaHandleBaseSafeLlavaImageEmbedHandle
Implements IDisposable

Properties

IsInvalid

public bool IsInvalid { get; }

Property Value

Boolean

IsClosed

public bool IsClosed { get; }

Property Value

Boolean

Methods

CreateFromFileName(SafeLlavaModelHandle, LLamaContext, String)

Create an image embed from an image file

public static SafeLlavaImageEmbedHandle CreateFromFileName(SafeLlavaModelHandle ctxLlava, LLamaContext ctxLlama, string image)

Parameters

ctxLlava SafeLlavaModelHandle

ctxLlama LLamaContext

image String
Path to the image file. Supported formats: JPGPNGBMPTGA

Returns

SafeLlavaImageEmbedHandle

Exceptions

InvalidOperationException

CreateFromMemory(SafeLlavaModelHandle, LLamaContext, Byte[])

Create an image embed from the bytes of an image.

public static SafeLlavaImageEmbedHandle CreateFromMemory(SafeLlavaModelHandle ctxLlava, LLamaContext ctxLlama, Byte[] image)

Parameters

ctxLlava SafeLlavaModelHandle

ctxLlama LLamaContext

image Byte[]
Image bytes. Supported formats: JPGPNGBMPTGA

Returns

SafeLlavaImageEmbedHandle

ReleaseHandle()

protected bool ReleaseHandle()

Returns

Boolean