Skip to content

Commit

Permalink
Tweak spec
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chu <justinchu@microsoft.com>
  • Loading branch information
justinchuby committed Sep 15, 2023
1 parent d72510e commit f51a049
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onnx/defs/math/defs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2988,14 +2988,14 @@ static const char* DFT_ver20_doc =
R"DOC(Computes the discrete Fourier Transform (DFT) of the input.
Assuming the input has shape `[M, N]`, where `N` is the dimension over which the
DFT is computed and `M` denotes the conceptual "all other dimensions",
DFT is computed and `M` denotes the conceptual "all other dimensions,"
the DFT `y[m, k]` of of shape `[M, N]` is defined as
$$y[k] = \sum_{n=0}^{N-1} e^{-2 \pi j \frac{k n}{N} } x[n] \, ,$$
$$y[k] = \sum_{n=0}^{N-1} e^{-2 \pi j \frac{k n}{N} } x[n] ,$$
and the inverse transform is defined as
$$x[n] = \frac{1}{N} \sum_{k=0}^{N-1} e^{2 \pi j \frac{k n}{N} } y[k] \, ,$$
$$x[n] = \frac{1}{N} \sum_{k=0}^{N-1} e^{2 \pi j \frac{k n}{N} } y[k] ,$$
where $j$ is the imaginary unit.
Expand Down

0 comments on commit f51a049

Please sign in to comment.