sigmoid method

Tensor sigmoid()

Element-wise sigmoid.

Implementation

Tensor sigmoid() => map((x) => 1.0 / (1.0 + math.exp(-x)));