Skip to content

Commit b94de17

Browse files
committed
pylint
Signed-off-by: xavier dupré <[email protected]>
1 parent 003abc7 commit b94de17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tf2onnx/onnx_opset/signal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
# pylint: disable=unused-argument,missing-docstring
2424

25-
def make_dft_constant(N, dtype, fft_length):
26-
n = np.arange(N)
27-
k = n.reshape((N, 1)).astype(np.float64)
28-
mat = np.exp(-2j * np.pi * k * n / N)
25+
def make_dft_constant(length, dtype, fft_length):
26+
n = np.arange(length)
27+
k = n.reshape((length, 1)).astype(np.float64)
28+
mat = np.exp(-2j * np.pi * k * n / length)
2929
mat = mat[:fft_length // 2 + 1]
3030
both = np.empty((2,) + mat.shape, dtype=dtype)
3131
both[0, :, :] = np.real(mat)

0 commit comments

Comments
 (0)