Class PrePackedWeightsContainer
This class holds pre-packed weights of shared initializers to be shared across sessions using these initializers and thereby provide memory savings by sharing the same pre-packed versions of these shared initializers
Implements
Inherited Members
Namespace: Microsoft.ML.OnnxRuntime
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class PrePackedWeightsContainer : SafeHandle, IDisposable
Constructors
| Improve this Doc View SourcePrePackedWeightsContainer()
Constructs an empty PrePackedWeightsContainer
Declaration
public PrePackedWeightsContainer()
Properties
| Improve this Doc View SourceIsInvalid
Overrides SafeHandle.IsInvalid
Declaration
public override bool IsInvalid { get; }
Property Value
| Type | Description |
|---|---|
| bool | returns true if handle is equal to Zero |
Overrides
Methods
| Improve this Doc View SourceReleaseHandle()
Overrides SafeHandle.ReleaseHandle() to deallocate a chunk of memory using the specified allocator.
Declaration
protected override bool ReleaseHandle()
Returns
| Type | Description |
|---|---|
| bool | always returns true |