Class OnnxRuntimeSessionOptions
De naam: Aspose.OCR Verzameling: Aspose.OCR.dll (25.4.0)
Configuratie-opties voor het maken van ONNX InferenceSession.Wij raden u aan de geoptimaliseerde standaarden te houden tenzij u absoluut zeker bent over de wijzigingen. voor technische details, raadpleeg ONNX Runtime documentatie.
public static class OnnxRuntimeSessionOptions
Inheritance
object ← OnnxRuntimeSessionOptions
Geëerbiede leden
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
ExecutionMode
Uitvoeringsmodus voor de sessie.Bij standaard worden exploitanten gelijktijdig uitgevoerd, wanneer mogelijk.
public static ExecutionModeOnnx ExecutionMode { get; set; }
Eigendomswaarde
GraphOptimizationLevel
Graph optimalisatie niveau voor de sessie. door standaard, alle beschikbare optimalisaties zijn ingeschakeld voor maximale prestaties.
public static GraphOptimizationLevelOnnx GraphOptimizationLevel { get; set; }
Eigendomswaarde
InterOpNumThreads
Als sequentiële uitvoering (ExecutionModeOnnx.ORT_SEQUENTIAL) is ingeschakeld in ExecutionMode eigendom, wordt deze waarde negeerd.
public static int InterOpNumThreads { get; set; }
Eigendomswaarde
IntraOpNumThreads
Aantal draadjes voor één operatie.
public static int IntraOpNumThreads { get; set; }