Constructor * * @param[in] ctx Context from where the tensor pack will be created from * @param[out] status Status information if requested */
| 707 | * @param[out] status Status information if requested |
| 708 | */ |
| 709 | explicit TensorPack(Context &ctx, StatusCode *status = nullptr) |
| 710 | { |
| 711 | AclTensorPack pack; |
| 712 | const auto st = detail::as_enum<StatusCode>(AclCreateTensorPack(&pack, ctx.get())); |
| 713 | reset(pack); |
| 714 | report_status(st, "[Compute Library] Failure during tensor pack creation"); |
| 715 | if (status) |
| 716 | { |
| 717 | *status = st; |
| 718 | } |
| 719 | } |
| 720 | /** Add tensor to tensor pack |
| 721 | * |
| 722 | * @param[in] slot_id Slot id of the tensor in respect with the operator |
nothing calls this directly
no test coverage detected