Skip to content

Commit

Permalink
Update signal.py
Browse files Browse the repository at this point in the history
Signed-off-by: xavier dupré <xavier.dupre@gmail.com>
  • Loading branch information
sdpython committed Sep 29, 2020
1 parent 033fa65 commit c70208b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tf2onnx/onnx_opset/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ def DFT_real(x, fft_length=None):
"""
consumers = ctx.find_output_consumers(node.output[0])
consumer_types = set(op.type for op in consumers)
utils.make_sure(consumer_types == {'ComplexAbs'}, "Current implementation of RFFT only allows ComplexAbs as consumer not %r", consumer_types)
utils.make_sure(
consumer_types == {'ComplexAbs'},
"Current implementation of RFFT only allows ComplexAbs as consumer not %r",
consumer_types)

onnx_dtype = ctx.get_dtype(node.input[0])
shape = ctx.get_shape(node.input[0])
Expand Down

0 comments on commit c70208b

Please sign in to comment.