Skip to content

SafeLlavaImageEmbedHandle

Namespace: LLama.Native

A Reference to a llava Image Embed handle

1
public sealed class SafeLlavaImageEmbedHandle : SafeLLamaHandleBase, System.IDisposable

Inheritance ObjectCriticalFinalizerObjectSafeHandleSafeLLamaHandleBaseSafeLlavaImageEmbedHandle
Implements IDisposable

Properties

IsInvalid

1
public bool IsInvalid { get; }

Property Value

Boolean

IsClosed

1
public bool IsClosed { get; }

Property Value

Boolean

Methods

CreateFromFileName(SafeLlavaModelHandle, LLamaContext, String)

Create an image embed from an image file

1
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.

1
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()

1
protected bool ReleaseHandle()

Returns

Boolean