提交 3fcb5000 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixes for typos and lines too long

上级 3cb9ac35
...@@ -3964,9 +3964,10 @@ def var(input, axis=None, keepdims=False): ...@@ -3964,9 +3964,10 @@ def var(input, axis=None, keepdims=False):
left in the result as dimensions with size one. With this option, left in the result as dimensions with size one. With this option,
the result will broadcast correctly against the original tensor. the result will broadcast correctly against the original tensor.
:note: It use the two-pass algorithm for more stable results. :note: It uses the two-pass algorithm for more stable results.
https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Two-pass_algorithm https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Two-pass_algorithm
It exist other implementation that are even more stable, but probably slower. There exist other implementations that are even more stable, but
probably slower.
""" """
input_ndim = input.type.ndim input_ndim = input.type.ndim
...@@ -4003,9 +4004,11 @@ def std(input, axis=None, keepdims=False): ...@@ -4003,9 +4004,11 @@ def std(input, axis=None, keepdims=False):
the result will broadcast correctly against the the result will broadcast correctly against the
original tensor. original tensor.
:note: It call var and var use the two-pass algorithm for more stable results. :note: It calls `var()` and `var()` uses the two-pass algorithm for more
stable results.
https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Two-pass_algorithm https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Two-pass_algorithm
It exist other implementation that are even more stable, but probably slower. There exist other implementations that are even more stable, but
probably slower.
""" """
return sqrt(var(input=input, axis=axis, keepdims=keepdims)) return sqrt(var(input=input, axis=axis, keepdims=keepdims))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论