EnableMemoryPattern
OnnxRuntimeSessionOptions.EnableMemoryPattern property
Enables or disables memory pattern optimization for input tensors. When enabled, ONNX Runtime caches memory allocation patterns for faster execution, but may increase memory usage for dynamic input shapes. Disable if inputs vary significantly or to reduce memory footprint.
public static bool EnableMemoryPattern { get; set; }
See Also
- class OnnxRuntimeSessionOptions
- namespace Aspose.OCR
- assembly Aspose.OCR