Sigmoid activation: `1 / (1 + exp(-x))`.
(&self, x: &Tensor)
| 506 | |
| 507 | /// Sigmoid activation: `1 / (1 + exp(-x))`. |
| 508 | fn sigmoid(&self, x: &Tensor) -> Result<Tensor> { |
| 509 | candle_nn::ops::sigmoid(x) |
| 510 | } |
| 511 | |
| 512 | /// Embedding lookup: select rows from weight matrix by token IDs. |
| 513 | fn embedding(&self, ids: &Tensor, weight: &Tensor) -> Result<Tensor> { |
nothing calls this directly
no test coverage detected