Class RuntimeContextInternal

Manages extra runtime context for the runtime.

Hierarchy

  • RuntimeContext

Implements

Constructors

Properties

applyPresenceAndFrequencyPenalty: PackedFunc
applyRepetitionPenalty: PackedFunc
applySoftmaxWithTemperature: PackedFunc
arrayCacheClear: PackedFunc
arrayCacheGet: PackedFunc
arrayCacheRemove: PackedFunc
arrayCacheUpdate: PackedFunc
arrayConcat: PackedFunc
arrayDecodeStorage: PackedFunc
arrayGetItem: PackedFunc
arrayGetSize: PackedFunc
arrayMake: PackedFunc
getFFIString: PackedFunc
getSysLib: PackedFunc
makeShapeTuple: PackedFunc
ndarrayCreateView: PackedFunc
paramModuleFromCache: PackedFunc
paramModuleFromCacheByName: PackedFunc
sampleTopPFromLogits: PackedFunc
sampleTopPFromProb: PackedFunc
stringMake: PackedFunc

Methods

  • Track object for dispose in current scope.

    Note

    This function only needs to be called for raw system C API values. The return value of PackedFunc will be automatically tracked.

    Type Parameters

    Parameters

    • obj: T

      The object to be tracked.

    Returns T

    the same object.

  • Type Parameters

    Parameters

    • obj: T

    Returns T

  • Dispose the internal resource This function can be called multiple times, only the first call will take effect.

    Returns void

  • Type Parameters

    Parameters

    • obj: T

    Returns T

Generated using TypeDoc