| 85 | } |
| 86 | |
| 87 | void SliceBoxingCopyKernel::ForwardDataContent(KernelContext* ctx) const { |
| 88 | Blob* out = ctx->BnInOp2Blob("out"); |
| 89 | if (out->shape_view().elem_cnt() == 0) { return; } |
| 90 | FOR_RANGE(int64_t, i, 0, this->op_attribute().input_bns().size()) { |
| 91 | const Blob* in_i = ctx->BnInOp2Blob(GenRepeatedBn("in", i)); |
| 92 | this->tensor_slice_copier_vec().at(i)->Copy(ctx->stream(), out, in_i); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | const SliceBoxingConf& SliceBoxingAddKernel::GetCustomizedBoxingConf() const { |
| 97 | return this->op_conf().slice_boxing_add_conf().slice_boxing_conf(); |
nothing calls this directly
no test coverage detected