Class

DescriptorRunnerWebGPU

DescriptorRunner for WebGPU

Inheritance hierarchy
Constructors
#
Parameters
Name Type Default Description
options DescriptorRunnerOptions {}
Returns
Properties
Methods
#

Get input SymbolicFloat32Array object

deprecated

Use inputs instead

Returns
#

Get output SymbolicFloat32Array object

deprecated

Use outputs instead

Returns
#

Initialize descriptor runner asynchronously

Returns
Promise<void >

Promise object which is resolved when the initialization finished.

#

Run descriptor. You must call getInputViews and getOutputViews before calling this function.

Returns
Promise<void >
#

saveCache

saveCache(directory: string , descriptor: GraphDescriptorWebGPU, parameters: ArrayBuffer ): Promise<void > [descriptor_runner/descriptor_runner_webgpu.ts:183]

save cache

Parameters
Name Type Default Description
directory string
descriptor GraphDescriptorWebGPU
parameters ArrayBuffer
Returns
Promise<void >
#

setDescriptorAndParameters

setDescriptorAndParameters(descriptor: GraphDescriptorWebGPU, parameter: ArrayBuffer ): Promise<void > [descriptor_runner/descriptor_runner_webgpu.ts:190]
Parameters
Name Type Default Description
descriptor GraphDescriptorWebGPU
parameter ArrayBuffer
Returns
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.

Parameters
Name Type Default Description
values object

mapping object of placeholder name and value

Returns
Promise<void >
#

checkAvailability

Return true if this backend is available in this environment.

Returns
boolean