Program Listing for File conv2d_backprop_input_fusion.h
↰ Return to documentation for file (include/converter/include/ops/fusion/conv2d_backprop_input_fusion.h
)
#ifndef MINDSPORE_CORE_OPS_CONV2D_BACKPROP_INPUT_FUSION_H_
#define MINDSPORE_CORE_OPS_CONV2D_BACKPROP_INPUT_FUSION_H_
#include <vector>
#include "mindapi/base/types.h"
#include "ops/grad/conv2d_backprop_input.h"
namespace mindspore {
namespace ops {
constexpr auto kNameConv2DBackpropInputFusion = "Conv2DBackpropInputFusion";
class MIND_API Conv2DBackpropInputFusion : public Conv2DBackpropInput {
public:
MIND_API_BASE_MEMBER(Conv2DBackpropInputFusion);
Conv2DBackpropInputFusion() : Conv2DBackpropInput(kNameConv2DBackpropInputFusion) {}
void Init(int64_t in_channel, int64_t out_channel, const std::vector<int64_t> &kernel_size, int64_t mode = 1,
const PadMode &pad_mode = VALID, const std::vector<int64_t> &pad = {0, 0, 0, 0},
const std::vector<int64_t> &stride = {1, 1, 1, 1}, const std::vector<int64_t> &dilation = {1, 1, 1, 1},
int64_t group = 1, const Format &format = NCHW, const std::vector<int64_t> &pad_list = {0, 0, 0, 0},
const ActivationType &activation_type = NO_ACTIVATION);
void set_in_channel(int64_t in_channel);
void set_activation_type(const ActivationType &activation_type);
int64_t get_in_channel() const;
ActivationType get_activation_type() const;
};
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_CONV2D_BACKPROP_INPUT_FUSION_H_