MCPcopy Create free account
hub / github.com/Sunset-Studios/Sundown / initialize

Method initialize

engine/src/ml/math/tensor.js:42–68  ·  view source on GitHub ↗

* (Re)Initializes the Tensor instance. * Called by both the constructor and the create() factory when recycling. * * @param {Array|ArrayBuffer|TypedArray|null} data - initial data. * @param {number[]} shape - tensor shape. * @param {Function} ArrayType - Typed array constructor.

(data, shape, batch_size = 1, ArrayType = Float32Array)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

createMethod · 0.95

Calls 1

debug_log_tensorMethod · 0.80

Tested by

no test coverage detected