| 271 | } |
| 272 | |
| 273 | void AddStatisticKernels(KernelInit init, |
| 274 | const std::vector<std::shared_ptr<DataType>>& types, |
| 275 | ScalarAggregateFunction* func) { |
| 276 | for (const auto& ty : types) { |
| 277 | auto sig = KernelSignature::Make({InputType(ty->id())}, float64()); |
| 278 | AddAggKernel(std::move(sig), init, func); |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | void AddStatisticKernels(KernelInit init, ScalarAggregateFunction* func) { |
| 283 | AddStatisticKernels(init, NumericTypes(), func); |
no test coverage detected