Unverified Commit a93547d6 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Merge pull request #3193 from NervanaSystems/gauri/macos_cast_r023

Fix crash on MacOS for r0.23
parents 0a4b3e33 bedb49f0
...@@ -692,8 +692,9 @@ bool runtime::cpu::mkldnn_utils::is_mkldnn_padded_layout(const mkldnn::memory::d ...@@ -692,8 +692,9 @@ bool runtime::cpu::mkldnn_utils::is_mkldnn_padded_layout(const mkldnn::memory::d
bool runtime::cpu::mkldnn_utils::use_mkldnn_kernel(const ngraph::Node* node) bool runtime::cpu::mkldnn_utils::use_mkldnn_kernel(const ngraph::Node* node)
{ {
if (auto* op_node = dynamic_cast<const ngraph::op::Op*>(node)) if (node->is_op())
{ {
auto* op_node = static_cast<const ngraph::op::Op*>(node);
auto op_annotations = op_node->get_op_annotations(); auto op_annotations = op_node->get_op_annotations();
return (op_annotations && return (op_annotations &&
static_pointer_cast<ngraph::runtime::cpu::CPUOpAnnotations>(op_annotations) static_pointer_cast<ngraph::runtime::cpu::CPUOpAnnotations>(op_annotations)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment