DriftTexture · interface

StoredGraph

A graph as a file stores it: its tensors in either precision, half as the bits a device uploads. @driftengine/drft's DrftGraph is one, structurally, which is how the two packages meet without either importing the other.

Explained in DriftTexture.

interface StoredGraph
import type { StoredGraph } from '@driftengine/texture';

Properties

NameTypeDescription
inputsreadonlyreadonly GraphValue[]
outputsreadonlyreadonly string[]
nodesreadonlyreadonly GraphNode[]
tensorsreadonlyreadonly { readonly name: string; readonly shape: readonly number[]; readonly data: Float32Array | Uint16Array; }[]