Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

math formula fixes 2021.1 #3513

Closed
wants to merge 1 commit into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -1582,9 +1582,9 @@ OI, which means that Input changes the fastest, then Output.

**Mathematical Formulation**

\f[
output[:, ... ,:, i, ... , j,:, ... ,:] = input2[:, ... ,:, input1[i, ... ,j],:, ... ,:]
\f]
\f[
output[:, ... ,:, i, ... , j,:, ... ,:] = input2[:, ... ,:, input1[i, ... ,j],:, ... ,:]
\f]


**Inputs**
Expand Down Expand Up @@ -5086,7 +5086,9 @@ t \in \left ( 0, \quad tiles \right )

Output tensor is populated by values computes in the following way:

output[i1, ..., i(axis-1), j, i(axis+1) ..., iN] = top_k(input[i1, ...., i(axis-1), :, i(axis+1), ..., iN]), k, sort, mode)
\f[
output[i1, ..., i(axis-1), j, i(axis+1) ..., iN] = top_k(input[i1, ...., i(axis-1), :, i(axis+1), ..., iN]), k, sort, mode)
\f]

So for each slice `input[i1, ...., i(axis-1), :, i(axis+1), ..., iN]` which represents 1D array, top_k value is computed individually. Sorting and minimum/maximum are controlled by `sort` and `mode` attributes.

Expand Down
6 changes: 3 additions & 3 deletions docs/ops/activation/Mish_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

For each element from the input tensor calculates corresponding
element in the output tensor with the following formula:
\f[
Mish(x) = x*tanh(ln(1.0+e^{x}))
\f]
\f[
Mish(x) = x*tanh(ln(1.0+e^{x}))
\f]

**Examples**

Expand Down
7 changes: 4 additions & 3 deletions docs/ops/activation/Sigmoid_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

For each element from the input tensor calculates corresponding
element in the output tensor with the following formula:
\f[
sigmoid( x ) = \frac{1}{1+e^{-x}}
\f]

\f[
sigmoid( x ) = \frac{1}{1+e^{-x}}
\f]
6 changes: 3 additions & 3 deletions docs/ops/activation/Swish_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
**Detailed description**: For each element from the input tensor calculates corresponding
element in the output tensor with the following formula:

\f[
Swish(x) = x / (1.0 + e^{-(beta * x)})
\f]
\f[
Swish(x) = x / (1.0 + e^{-(beta * x)})
\f]

The Swish operation is introduced in the [article](https://arxiv.org/pdf/1710.05941.pdf).

Expand Down