| 20 | TORCH_MODULE(ConvReluBn); |
| 21 | |
| 22 | ConvReluBnImpl::ConvReluBnImpl(int input_channel, int output_channel, int kernel_size) { |
| 23 | conv = register_module("conv", torch::nn::Conv2d(torch::nn::Conv2dOptions(input_channel, output_channel, kernel_size).padding(1))); |
| 24 | bn = register_module("bn", torch::nn::BatchNorm2d(output_channel)); |
| 25 | |
| 26 | } |
| 27 | |
| 28 | torch::Tensor ConvReluBnImpl::forward(torch::Tensor x) { |
| 29 | x = torch::relu(conv->forward(x)); |
nothing calls this directly
no outgoing calls
no test coverage detected