Skip to content

Commit 34305e8

Browse files
authored
Klockwork code clean (#28) (#28)
1 parent 896a070 commit 34305e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/core/grappler/optimizers/remapper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ bool SharedInputWithMatMul(const RemapperContext& ctx, int node_index,
722722
if (!IsMatMul(*(x_node_view->node())) &&
723723
x_node_view->GetOp() != kFusedMatMul)
724724
continue;
725-
725+
if (shared_input == nullptr) return false;
726726
if (shared_input->node_index() ==
727727
x_node_view->GetRegularFanin(0).node_view()->node_index()) {
728728
return true;

0 commit comments

Comments
 (0)