| 148 | } |
| 149 | |
| 150 | void submitKernels(const Ref<CancellationToken>& ct) override |
| 151 | { |
| 152 | if (!src || !weight || !bias || !dst) |
| 153 | throw std::logic_error("convolution argument not set"); |
| 154 | |
| 155 | auto invoker = conv.MakeInvoker(); |
| 156 | auto argument = makeArgument(); |
| 157 | invoker.Run(argument, StreamConfig{}); |
| 158 | } |
| 159 | |
| 160 | private: |
| 161 | auto makeArgument() const |