53 lines
1.8 KiB
C++
53 lines
1.8 KiB
C++
|
|
//*****************************************************************************
|
||
|
|
// Copyright 2017-2022 Intel Corporation
|
||
|
|
//
|
||
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
|
// you may not use this file except in compliance with the License.
|
||
|
|
// You may obtain a copy of the License at
|
||
|
|
//
|
||
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
//
|
||
|
|
// Unless required by applicable law or agreed to in writing, software
|
||
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
|
// See the License for the specific language governing permissions and
|
||
|
|
// limitations under the License.
|
||
|
|
//*****************************************************************************
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <cstddef>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
#include "openvino/op/op.hpp"
|
||
|
|
#include "openvino/op/util/fft_base.hpp"
|
||
|
|
|
||
|
|
namespace ov {
|
||
|
|
namespace op {
|
||
|
|
namespace v7 {
|
||
|
|
/// \brief An operation DFT that computes the discrete Fourier transformation.
|
||
|
|
/// \ingroup ov_ops_cpp_api
|
||
|
|
class OPENVINO_API DFT : public util::FFTBase {
|
||
|
|
public:
|
||
|
|
OPENVINO_OP("DFT", "opset7", util::FFTBase);
|
||
|
|
DFT() = default;
|
||
|
|
|
||
|
|
/// \brief Constructs a DFT operation. DFT is performed for full size axes.
|
||
|
|
///
|
||
|
|
/// \param data Input data
|
||
|
|
/// \param axes Axes to perform DFT
|
||
|
|
DFT(const Output<Node>& data, const Output<Node>& axes);
|
||
|
|
|
||
|
|
/// \brief Constructs a DFT operation.
|
||
|
|
///
|
||
|
|
/// \param data Input data
|
||
|
|
/// \param axes Axes to perform DFT
|
||
|
|
/// \param signal_size Signal sizes for 'axes'
|
||
|
|
DFT(const Output<Node>& data, const Output<Node>& axes, const Output<Node>& signal_size);
|
||
|
|
|
||
|
|
std::shared_ptr<Node> clone_with_new_inputs(const OutputVector& new_args) const override;
|
||
|
|
};
|
||
|
|
} // namespace v7
|
||
|
|
} // namespace op
|
||
|
|
} // namespace ov
|