Table of Contents

Class LoadResult

Namespace
AiDotNet.ModelLoading
Assembly
AiDotNet.dll

Result of a model weight loading operation.

public class LoadResult
Inheritance
LoadResult
Inherited Members

Properties

ErrorMessage

Error message if loading failed.

public string? ErrorMessage { get; set; }

Property Value

string

MappedNames

List of mapped tensor name pairs (source, target).

public List<(string Source, string Target)> MappedNames { get; set; }

Property Value

List<(string datasetId, string versionId)>

MappedTensors

Number of tensors successfully mapped.

public int MappedTensors { get; set; }

Property Value

int

Success

Whether the loading was successful.

public bool Success { get; set; }

Property Value

bool

TotalTensors

Total number of tensors in the file.

public int TotalTensors { get; set; }

Property Value

int

UnmappedNames

List of unmapped tensor names.

public List<string> UnmappedNames { get; set; }

Property Value

List<string>

UnmappedTensors

Number of tensors that couldn't be mapped.

public int UnmappedTensors { get; set; }

Property Value

int

WeightsApplied

Whether weights were actually applied to the model. Currently always false as VAE models don't yet support SetParameterByName.

public bool WeightsApplied { get; set; }

Property Value

bool

Methods

ToString()

Gets a summary of the load result.

public override string ToString()

Returns

string