Skip to content

Commit

Permalink
Wording and formatting
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 21, 2023
1 parent 482ae2c commit cd755fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions onnx/defs/math/defs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3049,8 +3049,8 @@ ONNX_OPERATOR_SET_SCHEMA(
2,
"axis",
"The axis as a scalar on which to perform the DFT. Default is `-2` (last signal axis). "
"Negative value means counting dimensions from the back. Accepted range is $[-r, -2] \\cup [0, r-1]$ where `r = rank(input)`. "
"The last dimension is for representing complex numbers and is thus an invalid axis.",
"Negative value means counting dimensions from the back. Accepted range is $[-r, -2] \\cup [0, r-2]$ where `r = rank(input)`. "
"The last dimension is for representing complex numbers and thus is an invalid axis.",
"tensor(int64)",
OpSchema::Optional,
true,
Expand Down
8 changes: 4 additions & 4 deletions onnx/defs/math/old.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2966,7 +2966,7 @@ ONNX_OPERATOR_SET_SCHEMA(
.Attr(
"onesided",
"If onesided is 1, only values for w in [0, 1, 2, ..., floor(n_fft/2) + 1] are returned because "
"the real-to-complex Fourier transform satisfies the conjugate symmetry, i.e., X[m, w] =X[m, n_fft-w]*. "
"the real-to-complex Fourier transform satisfies the conjugate symmetry, i.e., X[m, w] = X[m, n_fft-w]*. "
"Note if the input or window tensors are complex, then onesided output is not possible. "
"Enabling onesided with real inputs performs a Real-valued fast Fourier transform (RFFT). "
"When invoked with real or complex valued input, the default value is 0. "
Expand All @@ -2975,9 +2975,9 @@ ONNX_OPERATOR_SET_SCHEMA(
static_cast<int64_t>(0))
.Attr(
"axis",
"The axis on which to perform the DFT. By default this value is set to 1, which corresponds to the first dimension after the batch index."
"Negative value means counting dimensions from the back. Accepted range is $[-r, -2] \\cup [0, r-1]$ where `r = rank(input)`. "
"The last dimension is for representing complex numbers and is thus an invalid axis.",
"The axis on which to perform the DFT. By default this value is set to 1, which corresponds to the first dimension after the batch index. "
"Negative value means counting dimensions from the back. Accepted range is $[-r, -2] \\cup [0, r-2]$ where `r = rank(input)`. "
"The last dimension is for representing complex numbers and thus is an invalid axis.",
AttributeProto::INT,
static_cast<int64_t>(1))
.Attr(
Expand Down

0 comments on commit cd755fe

Please sign in to comment.