1#ifndef INFINI_OPS_BASE_THNN_CONV2D_H_
2#define INFINI_OPS_BASE_THNN_CONV2D_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,
Tensor out)
31 bias_type_{bias ? bias->dtype() : DataType::kFloat32},
38 const std::optional<Tensor> bias,
39 const std::vector<int64_t> kernel_size,
40 const std::vector<int64_t> stride,
41 const std::vector<int64_t> padding,
Definition generated/include/operator.h:282
Definition thnn_conv2d.h:11
std::vector< int64_t > stride_
Definition thnn_conv2d.h:73
DataType input_type_
Definition thnn_conv2d.h:49
std::vector< int64_t > kernel_size_
Definition thnn_conv2d.h:71
DataType out_type_
Definition thnn_conv2d.h:61
Tensor::Shape weight_shape_
Definition thnn_conv2d.h:51
Tensor::Strides input_strides_
Definition thnn_conv2d.h:47
Tensor::Strides out_strides_
Definition thnn_conv2d.h:59
Tensor::Shape input_shape_
Definition thnn_conv2d.h:45
Tensor::Strides bias_strides_
Definition thnn_conv2d.h:67
Tensor::Strides weight_strides_
Definition thnn_conv2d.h:53
DataType weight_type_
Definition thnn_conv2d.h:55
ThnnConv2d(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, Tensor out)
Definition thnn_conv2d.h:13
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, Tensor out) const =0
int device_index_
Definition thnn_conv2d.h:77
DataType bias_type_
Definition thnn_conv2d.h:69
Tensor::Shape bias_shape_
Definition thnn_conv2d.h:65
Tensor::Shape out_shape_
Definition thnn_conv2d.h:57
bool has_bias_
Definition thnn_conv2d.h:63
std::vector< int64_t > padding_
Definition thnn_conv2d.h:75
Definition generated/include/operator.h:28
infini::rt::TensorView Tensor
Definition tensor.h:8