Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions paddle/phi/ops/yaml/ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4968,10 +4968,6 @@

- op : sigmoid
args : (Tensor x)
python_api:
name : [paddle.sigmoid,paddle.Tensor.sigmoid,paddle.nn.functional.sigmoid]
args_alias:
use_default_mapping : True
output : Tensor
infer_meta :
func : UnchangedInferMeta
Expand Down
41 changes: 0 additions & 41 deletions python/paddle/_paddle_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,47 +590,6 @@ def any(

# shenwei

add_doc_and_signature(
"sigmoid",
r"""
Sigmoid Activation.

.. math::
out = \\frac{1}{1 + e^{-x}}

Args:
x (Tensor): Input of Sigmoid operator, an N-D Tensor, with data type bfloat16, float16, float32, float64,
uint8, int8, int16, int32, int64, complex64 or complex128.
name (str|None, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`.
Keyword Args:
out (Tensor|optional): The output tensor.

Returns:
Tensor. Output of Sigmoid operator, a Tensor with shape same as input
(integer types are autocasted into float32).

Examples:
.. code-block:: python

>>> import paddle
>>> import paddle.nn.functional as F

>>> x = paddle.to_tensor([-0.4, -0.2, 0.1, 0.3])
>>> out = F.sigmoid(x)
>>> print(out)
Tensor(shape=[4], dtype=float32, place=Place(cpu), stop_gradient=True,
[0.40131235, 0.45016602, 0.52497917, 0.57444251])
""",
"""
def sigmoid(
x: paddle.Tensor,
name: str | None = None,
*,
out: Tensor | None = None,
) -> paddle.Tensor
""",
)

# zhouxin

# hehongyu
Expand Down
161 changes: 0 additions & 161 deletions test/legacy_test/test_sigmoid.py

This file was deleted.

Loading