DriftTexture · interface
GraphEvaluator
Explained in DriftTexture.
interface GraphEvaluatorimport type { GraphEvaluator } from '@driftengine/texture';Properties
| Name | Type | Description |
|---|---|---|
shapesreadonly | ReadonlyMap<string, readonly number[]> | Every value's shape, inputs, tensors and intermediates alike. |
Methods
run
run(inputs: ReadonlyMap<string, Float32Array>): Map<string, Float32Array>Evaluate with these inputs. The returned arrays are the evaluator's own and are overwritten by the next run.
| Parameter | Type | Description |
|---|---|---|
inputs | ReadonlyMap<string, Float32Array> |