-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement STFT Decomposition transformer (#19725)
Implement STFT Decomposition transformer. Certain hardware does not support DXIL, and therefore existing operator should be mapped to hardware supported functions. Optimized convolution can be used to implement STFT. --------- Co-authored-by: Sheil Kumar <[email protected]>
- Loading branch information
Showing
8 changed files
with
864 additions
and
434 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#pragma once | ||
|
||
#include "core/optimizer/graph_transformer.h" | ||
#include "core/framework/ort_value.h" | ||
#include <memory> | ||
#include "core/framework/execution_provider.h" | ||
|
||
namespace onnxruntime { | ||
|
||
/** | ||
@class STFTDecomposition | ||
Transformer that traverses the graph top-down and decomposes | ||
STFT into convolution. | ||
*/ | ||
class STFTDecomposition : public GraphTransformer { | ||
public: | ||
/*! STFT decomposition . | ||
\param execution_provider Execution provider instance to execute constant folding. | ||
*/ | ||
STFTDecomposition(const InlinedHashSet<std::string_view>& compatible_execution_providers = {}) noexcept; | ||
|
||
private: | ||
Status ApplyImpl(Graph& graph, bool& modified, int graph_level, const logging::Logger& logger) const override; | ||
}; | ||
|
||
} // namespace onnxruntime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.