Program Listing for File squared_difference.h
↰ Return to documentation for file (include/converter/include/ops/squared_difference.h
)
#ifndef MINDSPORE_CORE_OPS_SQUARED_DIFFERENCE_H_
#define MINDSPORE_CORE_OPS_SQUARED_DIFFERENCE_H_
#include <memory>
#include <vector>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameSquaredDifference = "SquaredDifference";
class MIND_API SquaredDifference : public BaseOperator {
public:
MIND_API_BASE_MEMBER(SquaredDifference);
SquaredDifference() : BaseOperator(kNameSquaredDifference) { InitIOName({"x", "y"}, {"output"}); }
void Init() const {}
};
MIND_API abstract::AbstractBasePtr SquaredDifferenceInfer(const abstract::AnalysisEnginePtr &,
const PrimitivePtr &primitive,
const std::vector<abstract::AbstractBasePtr> &input_args);
using kPrimSquaredDifferencePtr = std::shared_ptr<SquaredDifference>;
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_SQUARED_DIFFERENCE_H_