Static methods

staticcreate(?options:Null<ContextCreateOptions>):Context

statictimelineClear():Void

statictimelineSave(path:String):Void

Constructor

@:value({ options : null, enableProfiler : false, arch : Cpu })new(arch:Arch = Cpu, enableProfiler:Bool = false, ?options:ContextOptions)

Variables

finalarch:Arch

@:value(false)read onlyofflineCacheEnabled:Bool = false

@:value("")read onlyofflineCachePath:String = ""

Methods

close():Void

loadNpy(path:String):TensorRuntime

optionWarnings():Array<String>

recordOptionWarning(message:String):Void

@:value({ sparseThresholdBytes : 104857600, stackSize : 0 })setAdstackConfig(experimentalEnabled:Bool, stackSize:Int = 0, sparseThresholdBytes:Int = 104857600):Void

setBoundsCheck(enabled:Bool):Void

setCfgOptimization(enabled:Bool):Void

setCpuMaxNumThreads(threadCount:Int):Void

@:value({ printIrDebugInfo : false, printPreprocessedIr : false, printIr : true })setDebugDump(path:String, printIr:Bool = true, printPreprocessedIr:Bool = false, printIrDebugInfo:Bool = false):Void

setDebugMode(enabled:Bool):Void

setFastMath(enabled:Bool):Void

@:value({ path : "" })setOfflineCache(enabled:Bool, path:String = ""):Void

setOfflineCacheCleanFactor(factor:Float):Void

setOfflineCacheMaxSizeBytes(maxSizeBytes:Int64):Void

setOptLevel(level:OptLevel):Void

setRandomSeed(seed:Int):Void

setTimeline(enabled:Bool):Void

sync():Void