torch.foreach.sigmoid_#
- torch.foreach.sigmoid_(inputs: TensorList, /) tuple[Tensor, ...] | list[Tensor][source]#
Applies
torch.sigmoid()to each tensor ininputsin-place.This is semantically equivalent to applying
torch.sigmoid()independently at every list position. Mutates every tensor ininputsand returns the exact input container object.Tensor-list arguments must be non-empty. An accelerated multi-tensor implementation is used only when supported by the inputs; otherwise the operation falls back to per-tensor execution.