熟络是什么意思

class paddle.nn. ReLU ( name: Optional[str] = None ) [source]
百度 会议召开之前,中央统战部派出调查组到上海、浙江等地,就三十年来统一战线内部阶级关系的变化等理论政策问题进行调查研究,写出了《关于统战工作的重点转移到社会主义现代化意见》(简称《意见稿》),中央统战部部务会议于1979年3月对《意见稿》进行了深入讨论。

ReLU Activation. The calculation formula is follows:

\[ReLU(x) = max(x, 0)\]

x is input Tensor.

Parameters

name (str|None, optional) – Name for the operation (optional, default is None). For more information, please refer to Name.

Shape:
  • input: Tensor with any shape.

  • output: Tensor with the same shape as input.

Examples

>>> import paddle

>>> x = paddle.to_tensor([-2., 0., 1.])
>>> m = paddle.nn.ReLU()
>>> out = m(x)
>>> print(out)
Tensor(shape=[3], dtype=float32, place=Place(cpu), stop_gradient=True,
[0., 0., 1.])
forward ( x: Tensor ) Tensor

forward?

Defines the computation performed at every call. Should be overridden by all subclasses.

Parameters
  • *inputs (tuple) – unpacked tuple arguments

  • **kwargs (dict) – unpacked dict arguments

extra_repr ( ) str

extra_repr?

Extra representation of this layer, you can have custom implementation of your own layer.

Used in the guide/tutorials?