adaptive pooling
| 179 | |
| 180 | //! adaptive pooling |
| 181 | TEST_F(NAIVE, ADAPTIVE_POOLING_FORWARD_RECORD) { |
| 182 | TaskRecordChecker<AdaptivePooling> checker(2); |
| 183 | auto args = adaptive_pooling::get_args(); |
| 184 | using Format = param::AdaptivePooling::Format; |
| 185 | DType dtype = dtype::Float32(); |
| 186 | for (auto&& arg : args) { |
| 187 | auto param = arg.param; |
| 188 | auto src = arg.ishape; |
| 189 | auto dst = arg.oshape; |
| 190 | param.format = Format::NCHW; |
| 191 | checker.set_epsilon(1e-2); |
| 192 | checker.set_param(param).set_dtype(0, dtype).set_dtype(1, dtype).exec( |
| 193 | TensorShapeArray{src, dst, {}}); |
| 194 | break; |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | TEST_F(NAIVE, ADAPTIVE_POOLING_BACKWARD_RECORD) { |
| 199 | TaskRecordChecker<AdaptivePooling> checker(2); |
nothing calls this directly
no test coverage detected