Skip to content

Commit ae878c8

Browse files
committed
Fix typos
1 parent 449e1fe commit ae878c8

File tree

1 file changed

+2
-2
lines changed
  • onnxscript/function_libs/torch_lib/ops

1 file changed

+2
-2
lines changed

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8212,13 +8212,13 @@ def aten_stft(
82128212
) -> TFloat:
82138213
"""stft(Tensor self, int n_fft, int? hop_length=None, int? win_length=None, Tensor? window=None, bool normalized=False, bool? onesided=None, bool? return_complex=None) -> Tensor"""
82148214

8215-
# NOTE: regarless of the value of return_complex, we always return a real representation.
8215+
# NOTE: regardless of the value of return_complex, we always return a real representation.
82168216
del return_complex
82178217

82188218
# Get STFT sizes
82198219
if hop_length is None:
82208220
# core dump
8221-
# hop_leagth = op.Div(op.Constant(value_ints=n_fft), op.Constant(value_ints=[4]))
8221+
# hop_length = op.Div(op.Constant(value_ints=n_fft), op.Constant(value_ints=[4]))
82228222
hop_length = n_fft // 4
82238223
frame_step_const = op.Reshape(hop_length, op.Constant(value_ints=[1]))
82248224
frame_length_const = op.Reshape(n_fft, op.Constant(value_ints=[1]))

0 commit comments

Comments
 (0)