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

Method sigmoid

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

* Return a new Tensor with the sigmoid function applied to each element. * @returns {Tensor} The tensor with the sigmoid function applied.

()

Source from the content-addressed store, hash-verified

207 * @returns {Tensor} The tensor with the sigmoid function applied.
208 */
209 sigmoid() {
210 return this.clone().sigmoid_();
211 }
212
213 /**
214 * Applies the sigmoid function to the tensor in place.

Callers 6

_callMethod · 0.80
_callMethod · 0.80
tensor.test.jsFile · 0.80

Calls 2

cloneMethod · 0.95
sigmoid_Method · 0.80

Tested by

no test coverage detected