Program Listing for File unsqueeze.h
↰ Return to documentation for file (include/converter/include/ops/unsqueeze.h
)
#ifndef MINDSPORE_CORE_OPS_UNSQUEEZE_H_
#define MINDSPORE_CORE_OPS_UNSQUEEZE_H_
#include <memory>
#include <vector>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameUnsqueeze = "Unsqueeze";
class MIND_API Unsqueeze : public BaseOperator {
public:
MIND_API_BASE_MEMBER(Unsqueeze);
Unsqueeze() : BaseOperator(kNameUnsqueeze) {}
void Init(const std::vector<int64_t> axis);
void set_axis(const std::vector<int64_t> axis);
std::vector<int64_t> get_axis() const;
};
MIND_API abstract::AbstractBasePtr UnsqueezeInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,
const std::vector<abstract::AbstractBasePtr> &input_args);
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_UNSQUEEZE_H_