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
Inheritance
System.Object
PrePackedWeightsContainer
Namespace: Microsoft.ML.OnnxRuntime
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class PrePackedWeightsContainer : SafeHandle
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 |
---|---|
System.Boolean | returns true if handle is equal to Zero |
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 |
---|---|
System.Boolean | always returns true |