| 36 | }; |
| 37 | |
| 38 | Result<std::unique_ptr<KernelState>> SumInitAvx2(KernelContext* ctx, |
| 39 | const KernelInitArgs& args) { |
| 40 | SumLikeInit<SumImplAvx2> visitor( |
| 41 | ctx, args.inputs[0].GetSharedPtr(), |
| 42 | static_cast<const ScalarAggregateOptions&>(*args.options)); |
| 43 | return visitor.Create(); |
| 44 | } |
| 45 | |
| 46 | } // namespace |
| 47 |