mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-04 23:59:56 +00:00
fix mkldnn linux build break. (#1458)
This commit is contained in:
parent
f938a6e53a
commit
a5f57f43c2
2 changed files with 3 additions and 5 deletions
|
|
@ -111,8 +111,7 @@ std::shared_ptr<KernelRegistry> MKLDNNExecutionProvider::GetKernelRegistry() con
|
|||
return kernel_registry;
|
||||
}
|
||||
|
||||
bool MKLDNNExecutionProvider::UseSubgraph(const onnxruntime::GraphViewer& graph_viewer,
|
||||
const std::vector<const KernelRegistry*>& kernel_registries) const {
|
||||
bool MKLDNNExecutionProvider::UseSubgraph(const onnxruntime::GraphViewer& graph_viewer) const {
|
||||
// switch between mkldnn-vanilla and mkldnn-subgraph implementation using
|
||||
// MKLDNN_SUBGRAPH environment variable
|
||||
bool use_subgraph = true;
|
||||
|
|
@ -224,7 +223,7 @@ std::vector<std::unique_ptr<ComputeCapability>> MKLDNNExecutionProvider::GetCapa
|
|||
|
||||
// temporary switch to toggle between mkldnn-vanilla and mkldnn-subgraph implementation using
|
||||
// ORT_MKLDNN_SUBGRAPH environment variable
|
||||
if (UseSubgraph(graph_viewer, kernel_registries) == false) {
|
||||
if (UseSubgraph(graph_viewer) == false) {
|
||||
return IExecutionProvider::GetCapability(graph_viewer, kernel_registries);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -98,8 +98,7 @@ class MKLDNNExecutionProvider : public IExecutionProvider {
|
|||
return graph_name;
|
||||
}
|
||||
|
||||
bool UseSubgraph(const onnxruntime::GraphViewer& graph_viewer,
|
||||
const std::vector<const KernelRegistry*>& kernel_registries) const;
|
||||
bool UseSubgraph(const onnxruntime::GraphViewer& graph_viewer) const;
|
||||
|
||||
// Some dimensions are not supported by MKL-DNN
|
||||
// example: Pool with NumDimensions <= 3 is not supported
|
||||
|
|
|
|||
Loading…
Reference in a new issue