Program Listing for File quant_dtype_cast.h

Return to documentation for file (include/converter/include/ops/quant_dtype_cast.h)

#ifndef MINDSPORE_CORE_OPS_QUANTD_TYPE_CAST_H_
#define MINDSPORE_CORE_OPS_QUANTD_TYPE_CAST_H_

#include <algorithm>
#include <map>
#include <memory>
#include <string>
#include <vector>

#include "mindapi/base/types.h"
#include "ops/base_operator.h"

namespace mindspore {
namespace ops {
constexpr auto kNameQuantDTypeCast = "QuantDTypeCast";
class MIND_API QuantDTypeCast : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(QuantDTypeCast);
  QuantDTypeCast() : BaseOperator(kNameQuantDTypeCast) {}

  void Init(const int64_t src_t, const int64_t dst_t);

  void set_src_t(const int64_t src_t);

  int64_t get_src_t() const;

  void set_dst_t(const int64_t dst_t);

  int64_t get_dst_t() const;

  void set_axis(const int64_t axis);

  int64_t get_axis() const;
};
MIND_API abstract::AbstractBasePtr QuantDTypeCastInfer(const abstract::AnalysisEnginePtr &,
                                                       const PrimitivePtr &primitive,
                                                       const std::vector<abstract::AbstractBasePtr> &input_args);
}  // namespace ops
}  // namespace mindspore

#endif  // MINDSPORE_CORE_OPS_QUANTD_TYPE_CAST_H_