| 19 | } |
| 20 | |
| 21 | Conv2dReLUImpl::Conv2dReLUImpl(int in_channels, int out_channels, int kernel_size, int padding){ |
| 22 | conv2d = torch::nn::Conv2d(conv_options(in_channels,out_channels,kernel_size,1,padding)); |
| 23 | bn = torch::nn::BatchNorm2d(torch::nn::BatchNorm2dOptions(out_channels)); |
| 24 | register_module("conv2d", conv2d); |
| 25 | register_module("bn", bn); |
| 26 | } |
| 27 | |
| 28 | torch::Tensor Conv2dReLUImpl::forward(torch::Tensor x){ |
| 29 | x = conv2d->forward(x); |
nothing calls this directly
no test coverage detected