MCPcopy Index your code
hub / github.com/huggingface/transformers.js / transpose

Method transpose

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

@type {Tensor['permute']}

(...dims)

Source from the content-addressed store, hash-verified

475 // TODO: implement transpose. For now (backwards compatibility), it's just an alias for permute()
476 /** @type {Tensor['permute']} */
477 transpose(...dims) {
478 return this.permute(...dims);
479 }
480
481 /**
482 * Returns the sum of each row of the input tensor in the given dimension dim.

Callers 3

fromTensorMethod · 0.80
spectrogramFunction · 0.80

Calls 1

permuteMethod · 0.95

Tested by

no test coverage detected