DescriptorRunnerWebGPU
constructor
new DescriptorRunnerWebGPU(options?: DescriptorRunnerOptions
): DescriptorRunnerWebGPU
[descriptor_runner/descriptor_runner_webgpu.ts:27]
backendName:BackendName
= "webgpu"
[descriptor_runner/descriptor_runner_webgpu.ts:37]
backend name
input arrays
outputs arrays
transformUrlDelegate: function
[descriptor_runner/descriptor_runner.ts:71]
getInputViews
getInputViews(): SymbolicFloat32Array
[]
[descriptor_runner/descriptor_runner_webgpu.ts:332]
Get input SymbolicFloat32Array
object
SymbolicFloat32Array
[]
array of input SymbolicFloat32Array
getOutputViews
getOutputViews(): SymbolicFloat32Array
[]
[descriptor_runner/descriptor_runner_webgpu.ts:362]
Get output SymbolicFloat32Array
object
SymbolicFloat32Array
[]
array of output SymbolicFloat32Array
init
init(): Promise<void
>
[descriptor_runner/descriptor_runner_webgpu.ts:76]
Initialize descriptor runner asynchronously
Promise<void
>
Promise object which is resolved when the initialization finished.
run
run(): Promise<void
>
[descriptor_runner/descriptor_runner_webgpu.ts:390]
Run descriptor. You must call getInputViews
and
getOutputViews
before calling this function.
Promise<void
>
saveCache
saveCache(directory: string
, descriptor: GraphDescriptorWebGPU
, parameters: ArrayBuffer
): Promise<void
>
[descriptor_runner/descriptor_runner_webgpu.ts:183]
save cache
Name | Type | Default | Description |
---|---|---|---|
directory
|
string
|
||
descriptor
|
GraphDescriptorWebGPU
|
||
parameters
|
ArrayBuffer
|
Promise<void
>
setDescriptorAndParameters
setDescriptorAndParameters(descriptor: GraphDescriptorWebGPU
, parameter: ArrayBuffer
): Promise<void
>
[descriptor_runner/descriptor_runner_webgpu.ts:190]
Name | Type | Default | Description |
---|---|---|---|
descriptor
|
GraphDescriptorWebGPU
|
||
parameter
|
ArrayBuffer
|
Promise<void
>
setPlaceholderValue
setPlaceholderValue(values: object
): Promise<void
>
[descriptor_runner/descriptor_runner_webgpu.ts:296]
Set actual value into placeholder. If all placeholder is resolved,
[[DescriptorRunnerWebGPU#initializeDynamicBuffer|initializeDynamicBuffer()
]] is automatically called.
Name | Type | Default | Description |
---|---|---|---|
values
|
object
|
mapping object of placeholder name and value |
Promise<void
>
checkAvailability
checkAvailability(): boolean
[descriptor_runner/descriptor_runner_webgpu.ts:68]
Return true
if this backend is available in this environment.
boolean
-
Constructors -
Properties -
Methods
DescriptorRunner for WebGPU