28 lines
735 B
Python
28 lines
735 B
Python
# Copyright (C) 2018-2022 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#! [fft:operation]
|
|
from openvino.tools.mo.front.common.partial_infer.elemental import copy_shape_infer
|
|
from openvino.tools.mo.graph.graph import Graph
|
|
from openvino.tools.mo.ops.op import Op
|
|
|
|
|
|
class FFT(Op):
|
|
op = 'FFT'
|
|
enabled = False
|
|
|
|
def __init__(self, graph: Graph, attrs: dict):
|
|
super().__init__(graph, {
|
|
'type': self.op,
|
|
'op': self.op,
|
|
'version': 'custom_opset',
|
|
'inverse': None,
|
|
'in_ports_count': 1,
|
|
'out_ports_count': 1,
|
|
'infer': copy_shape_infer
|
|
}, attrs)
|
|
|
|
def backend_attrs(self):
|
|
return ['inverse']
|
|
#! [fft:operation]
|