Skip to content

Commit

Permalink
Added NGRAPH_CHECK macros to evaluate()
Browse files Browse the repository at this point in the history
  • Loading branch information
nsemaev committed Sep 3, 2021
1 parent daa56ff commit 112d0eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ngraph/core/src/op/not_equal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "itt.hpp"
#include "ngraph/runtime/host_tensor.hpp"
#include "ngraph/runtime/reference/not_equal.hpp"
#include "ngraph/validation_util.hpp"

using namespace std;
using namespace ngraph;
Expand Down Expand Up @@ -65,6 +66,7 @@ shared_ptr<Node> op::v1::NotEqual::clone_with_new_inputs(const OutputVector& new

bool op::v1::NotEqual::evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const {
NGRAPH_OP_SCOPE(v1_NotEqual_evaluate);
NGRAPH_CHECK(validate_host_tensor_vector(outputs, 1) && validate_host_tensor_vector(inputs, 2));
return not_equalop::evaluate_not_equal(inputs[0], inputs[1], outputs[0], get_autob());
}

Expand Down

0 comments on commit 112d0eb

Please sign in to comment.