Program Listing for File cast.h

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

#ifndef MINDSPORE_CORE_OPS_CAST_H_
#define MINDSPORE_CORE_OPS_CAST_H_
#include <memory>
#include <vector>

#include "ops/base_operator.h"

namespace mindspore {
namespace ops {
constexpr auto kNameCast = "Cast";
class MIND_API Cast : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(Cast);
  Cast() : BaseOperator(kNameCast) { InitIOName({"x", "dst_type"}, {"output"}); }
};
}  // namespace ops
}  // namespace mindspore
#endif  // MINDSPORE_CORE_OPS_CAST_H_