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