tvmjs
    Preparing search index...

    Class RuntimeContextInternal

    Manages extra runtime context for the runtime.

    Implements

    Index

    Constructors

    Properties

    applyPresenceAndFrequencyPenalty: PackedFunc
    applyRepetitionPenalty: PackedFunc
    applySoftmaxWithTemperature: PackedFunc
    arrayConcat: PackedFunc
    arrayDecodeStorage: PackedFunc
    arrayGetItem: PackedFunc
    arrayGetSize: PackedFunc
    arrayMake: PackedFunc
    concatEmbeddings: PackedFunc
    functionListGlobalNamesFunctor: PackedFunc
    getSysLib: PackedFunc
    makeShapeTuple: PackedFunc
    moduleGetFunction: PackedFunc
    moduleImport: PackedFunc
    paramModuleFromCache: PackedFunc
    paramModuleFromCacheByName: PackedFunc
    sampleTopPFromLogits: PackedFunc
    sampleTopPFromProb: PackedFunc
    tensorCacheClear: PackedFunc
    tensorCacheGet: PackedFunc
    tensorCacheRemove: PackedFunc
    tensorCacheUpdate: PackedFunc
    tensorCopyFromJSBytes: PackedFunc
    tensorCopyFromTo: PackedFunc
    tensorCopyToJSBytes: PackedFunc
    tensorCreateView: PackedFunc
    tensorEmpty: PackedFunc

    Methods

    • Track object for dispose in current scope.

      Type Parameters

      Parameters

      • obj: T

        The object to be tracked.

      Returns T

      the same object.

      • Note: This function only needs to be called for raw system C API values. The return value of PackedFunc will be automatically tracked.
    • Dispose the internal resource This function can be called multiple times, only the first call will take effect.

      Returns void