1#ifndef INFINI_OPS_BASE_INTERNAL_CONV_DEPTHWISE2D_H_
2#define INFINI_OPS_BASE_INTERNAL_CONV_DEPTHWISE2D_H_
14 const std::optional<Tensor> bias,
15 const std::vector<int64_t> kernel_size,
16 const std::vector<int64_t> stride,
17 const std::vector<int64_t> padding,
18 const std::vector<int64_t> dilation,
Tensor out)
32 bias_type_{bias ? bias->dtype() : DataType::kFloat32},
40 const std::optional<Tensor> bias,
41 const std::vector<int64_t> kernel_size,
42 const std::vector<int64_t> stride,
43 const std::vector<int64_t> padding,
44 const std::vector<int64_t> dilation,
Definition generated/include/operator.h:282
Definition internal_conv_depthwise2d.h:11
Tensor::Strides bias_strides_
Definition internal_conv_depthwise2d.h:70
Tensor::Strides out_strides_
Definition internal_conv_depthwise2d.h:62
DataType bias_type_
Definition internal_conv_depthwise2d.h:72
Tensor::Shape out_shape_
Definition internal_conv_depthwise2d.h:60
std::vector< int64_t > dilation_
Definition internal_conv_depthwise2d.h:80
Tensor::Shape bias_shape_
Definition internal_conv_depthwise2d.h:68
std::vector< int64_t > kernel_size_
Definition internal_conv_depthwise2d.h:74
Tensor::Shape weight_shape_
Definition internal_conv_depthwise2d.h:54
Tensor::Strides input_strides_
Definition internal_conv_depthwise2d.h:50
std::vector< int64_t > padding_
Definition internal_conv_depthwise2d.h:78
DataType out_type_
Definition internal_conv_depthwise2d.h:64
Tensor::Shape input_shape_
Definition internal_conv_depthwise2d.h:48
DataType input_type_
Definition internal_conv_depthwise2d.h:52
bool has_bias_
Definition internal_conv_depthwise2d.h:66
ConvDepthwise2d(const Tensor input, const Tensor weight, const std::optional< Tensor > bias, const std::vector< int64_t > kernel_size, const std::vector< int64_t > stride, const std::vector< int64_t > padding, const std::vector< int64_t > dilation, Tensor out)
Definition internal_conv_depthwise2d.h:13
int device_index_
Definition internal_conv_depthwise2d.h:82
std::vector< int64_t > stride_
Definition internal_conv_depthwise2d.h:76
virtual void operator()(const Tensor input, const Tensor weight, const std::optional< Tensor > bias, const std::vector< int64_t > kernel_size, const std::vector< int64_t > stride, const std::vector< int64_t > padding, const std::vector< int64_t > dilation, Tensor out) const =0
Tensor::Strides weight_strides_
Definition internal_conv_depthwise2d.h:56
DataType weight_type_
Definition internal_conv_depthwise2d.h:58
Definition internal_add_relu.h:6
infini::rt::TensorView Tensor
Definition tensor.h:8