Show / Hide Table of Contents

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
object
CriticalFinalizerObject
SafeHandle
PrePackedWeightsContainer
Implements
IDisposable
Inherited Members
SafeHandle.handle
SafeHandle.Close()
SafeHandle.DangerousAddRef(ref bool)
SafeHandle.DangerousGetHandle()
SafeHandle.DangerousRelease()
SafeHandle.Dispose()
SafeHandle.Dispose(bool)
SafeHandle.SetHandle(nint)
SafeHandle.SetHandleAsInvalid()
SafeHandle.IsClosed
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.ML.OnnxRuntime
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class PrePackedWeightsContainer : SafeHandle, IDisposable

Constructors

| Improve this Doc View Source

PrePackedWeightsContainer()

Constructs an empty PrePackedWeightsContainer

Declaration
public PrePackedWeightsContainer()

Properties

| Improve this Doc View Source

IsInvalid

Overrides SafeHandle.IsInvalid

Declaration
public override bool IsInvalid { get; }
Property Value
Type Description
bool

returns true if handle is equal to Zero

Overrides
SafeHandle.IsInvalid

Methods

| Improve this Doc View Source

ReleaseHandle()

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

Overrides
SafeHandle.ReleaseHandle()

Implements

IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top