| 112 | } |
| 113 | |
| 114 | static void _createTensor(std::shared_ptr<Tensor>& dst, int index) { |
| 115 | if (dst.get() == nullptr) { |
| 116 | dst.reset(new Tensor); |
| 117 | TensorUtils::getDescribe(dst.get())->index = index; |
| 118 | } |
| 119 | } |
| 120 | bool initTensors(std::vector<std::shared_ptr<Tensor>>& tensors, const Net* net, const int* oplists, size_t opListSize) { |
| 121 | bool valid = true; |
| 122 | auto describes = net->extraTensorDescribe(); |
no test coverage detected