Program Listing for File scale.h
↰ Return to documentation for file (include/converter/include/ops/scale.h
)
#ifndef MINDSPORE_CORE_OPS_SCALE_H_
#define MINDSPORE_CORE_OPS_SCALE_H_
#include <map>
#include <memory>
#include <string>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameScale = "Scale";
class MIND_API Scale : public BaseOperator {
public:
MIND_API_BASE_MEMBER(Scale);
Scale() : BaseOperator(kNameScale) {}
explicit Scale(const std::string k_name) : BaseOperator(k_name) {}
void Init(const int64_t axis = -1);
void set_axis(const int64_t axis);
int64_t get_axis() const;
};
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_SCALE_H_