Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit a93547d

Browse files
authored
Merge pull request #3193 from NervanaSystems/gauri/macos_cast_r023
Fix crash on MacOS for r0.23
2 parents 0a4b3e3 + bedb49f commit a93547d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ngraph/runtime/cpu/mkldnn_utils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,9 @@ bool runtime::cpu::mkldnn_utils::is_mkldnn_padded_layout(const mkldnn::memory::d
692692

693693
bool runtime::cpu::mkldnn_utils::use_mkldnn_kernel(const ngraph::Node* node)
694694
{
695-
if (auto* op_node = dynamic_cast<const ngraph::op::Op*>(node))
695+
if (node->is_op())
696696
{
697+
auto* op_node = static_cast<const ngraph::op::Op*>(node);
697698
auto op_annotations = op_node->get_op_annotations();
698699
return (op_annotations &&
699700
static_pointer_cast<ngraph::runtime::cpu::CPUOpAnnotations>(op_annotations)

0 commit comments

Comments
 (0)