* Added clang-format config * Fixed style * Fixed code-style for snippets and fixed build * Disable clang-format for snippets * Fixed comments
30 lines
784 B
C++
30 lines
784 B
C++
// Copyright (C) 2018-2021 Intel Corporation
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
//! [fft_op:header]
|
|
#pragma once
|
|
|
|
#include <ngraph/ngraph.hpp>
|
|
|
|
namespace TemplateExtension {
|
|
|
|
class FFTOp : public ngraph::op::Op {
|
|
public:
|
|
static constexpr ngraph::NodeTypeInfo type_info {"FFT", 0};
|
|
const ngraph::NodeTypeInfo& get_type_info() const override {
|
|
return type_info;
|
|
}
|
|
|
|
FFTOp() = default;
|
|
FFTOp(const ngraph::Output<ngraph::Node>& inp, bool inverse);
|
|
void validate_and_infer_types() override;
|
|
std::shared_ptr<ngraph::Node> clone_with_new_inputs(const ngraph::OutputVector& new_args) const override;
|
|
bool visit_attributes(ngraph::AttributeVisitor& visitor) override;
|
|
|
|
bool inverse;
|
|
};
|
|
|
|
} // namespace TemplateExtension
|
|
//! [fft_op:header]
|