| 440 | } |
| 441 | |
| 442 | static Result<std::unique_ptr<KernelState>> Init(KernelContext* ctx, |
| 443 | const KernelInitArgs& args) { |
| 444 | ProductInit visitor(ctx, args.inputs[0].GetSharedPtr(), |
| 445 | static_cast<const ScalarAggregateOptions&>(*args.options)); |
| 446 | return visitor.Create(); |
| 447 | } |
| 448 | }; |
| 449 | |
| 450 | // ---------------------------------------------------------------------- |