提交 6ace04f6 编写于 作者: Q qiaolongfei

update

上级 1c9fc655
...@@ -133,7 +133,7 @@ $out = \max(x, 0)$ ...@@ -133,7 +133,7 @@ $out = \max(x, 0)$
__attribute__((unused)) constexpr char TanhDoc[] = R"DOC( __attribute__((unused)) constexpr char TanhDoc[] = R"DOC(
Tanh Activation Operator. Tanh Activation Operator.
$$out = \frac{e^{x} - e^{-x}}{e^{x} + e^{-x}}$$ $$out = \\frac{e^{x} - e^{-x}}{e^{x} + e^{-x}}$$
)DOC"; )DOC";
......
...@@ -4475,6 +4475,7 @@ def image_resize(input, ...@@ -4475,6 +4475,7 @@ def image_resize(input,
and the resizing only applies on the last two dimensions(hight and width). and the resizing only applies on the last two dimensions(hight and width).
Supporting resample methods: Supporting resample methods:
'BILINEAR' : Bilinear interpolation 'BILINEAR' : Bilinear interpolation
Args: Args:
...@@ -4494,8 +4495,8 @@ def image_resize(input, ...@@ -4494,8 +4495,8 @@ def image_resize(input,
Default: 'BILINEAR' Default: 'BILINEAR'
Returns: Returns:
out (Variable): The output is a 4-D tensor of the shape Variable: The output is a 4-D tensor of the shape
(num_batches, channls, out_h, out_w). (num_batches, channls, out_h, out_w).
Examples: Examples:
.. code-block:: python .. code-block:: python
...@@ -4579,7 +4580,7 @@ def image_resize_short(input, out_short_len, resample='BILINEAR'): ...@@ -4579,7 +4580,7 @@ def image_resize_short(input, out_short_len, resample='BILINEAR'):
resample (str): resample method, default: BILINEAR. resample (str): resample method, default: BILINEAR.
Returns: Returns:
out (Variable): The output is a 4-D tensor of the shape Variable: The output is a 4-D tensor of the shape
(num_batches, channls, out_h, out_w). (num_batches, channls, out_h, out_w).
""" """
in_shape = input.shape in_shape = input.shape
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册