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

Method round

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

* Rounds elements of input to the nearest integer. * @returns {Tensor} the output tensor.

()

Source from the content-addressed store, hash-verified

768 * @returns {Tensor} the output tensor.
769 */
770 round() {
771 return this.clone().round_();
772 }
773
774 mean(dim = null, keepdim = false) {
775 return mean(this, dim, keepdim);

Callers 10

smart_resizeFunction · 0.80
grayscaleMethod · 0.80
roundFunction · 0.80
bankers_roundFunction · 0.80
round_Method · 0.80
round_by_factorFunction · 0.80
split_audioMethod · 0.80
_callMethod · 0.80
tensor.test.jsFile · 0.80

Calls 2

cloneMethod · 0.95
round_Method · 0.80

Tested by

no test coverage detected