Class ov::op::v0::SquaredDifference#

class SquaredDifference : public ov::op::util::BinaryElementwiseArithmetic#

Calculates an element-wise squared difference between two tensors.

y[i] = (x1[i] - x2[i])^2

Public Functions

inline SquaredDifference()#

Constrcuts an uninitialized squared difference operation.

SquaredDifference(const Output<Node> &x1, const Output<Node> &x2, const AutoBroadcastSpec &auto_broadcast = AutoBroadcastSpec(AutoBroadcastType::NUMPY))#

Constructs the squared difference operation.

Parameters:
  • x1 – First input tensor

  • x2 – Second input tensor

  • auto_broadcast – Auto broadcast specification

virtual bool has_evaluate() const override#

Allows to get information about availability of evaluate method for the current operation.