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

Method init_tensor

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

* Utility to initialize a tensor. * @param {number[]} shape - desired shape. * @param {number} initializer - the initializer to use. * @param {number} output_size - the size of the output tensor. * @param {number} batch_size - the batch size of the tensor. * @param {Function} ArrayTyp

(
    shape,
    initializer,
    output_size = null,
    batch_size = 1,
    ArrayType = Float32Array
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

initializeMethod · 0.80

Calls 3

randomMethod · 0.80
random_heMethod · 0.80
random_glorotMethod · 0.80

Tested by

no test coverage detected