MCPcopy
hub / github.com/huggingface/transformers.js / tolist

Method tolist

packages/transformers/src/utils/tensor.js:201–203  ·  view source on GitHub ↗

* Convert tensor data to a n-dimensional JS list * @returns {any[]}

()

Source from the content-addressed store, hash-verified

199 * @returns {any[]}
200 */
201 tolist() {
202 return reshape(this.data, this.dims);
203 }
204
205 /**
206 * Return a new Tensor with the sigmoid function applied to each element.

Callers 15

prepareTensorForDecodeFunction · 0.80
batch_decodeMethod · 0.80
_callMethod · 0.80
_callMethod · 0.80
_callMethod · 0.80
_callMethod · 0.80
_callMethod · 0.80
_call_whisperMethod · 0.80
_call_cohere_asrMethod · 0.80
_callMethod · 0.80
generateMethod · 0.80

Calls 1

reshapeFunction · 0.85

Tested by

no test coverage detected