| 29 | |
| 30 | template <typename Context> |
| 31 | void AssignRawKernel(const Context& dev_ctx, |
| 32 | const optional<DenseTensor>& x, |
| 33 | DenseTensor* out) { |
| 34 | if (x) { |
| 35 | if (!x->IsInitialized()) { |
| 36 | return; |
| 37 | } |
| 38 | auto& x_tensor = *x.get_ptr(); |
| 39 | AssignKernel<Context>(dev_ctx, x_tensor, out); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | // Note: use `const optional<std::vector<const DenseTensor*>&> x` |
| 44 | // as input if needed |
nothing calls this directly
no test coverage detected