| 182 | using std::vector; |
| 183 | |
| 184 | dim4 toDims(const vector<af_seq> &seqs, const dim4 &parentDims) { |
| 185 | dim4 outDims(1, 1, 1, 1); |
| 186 | for (unsigned i = 0; i < seqs.size(); i++) { |
| 187 | outDims[i] = af::calcDim(seqs[i], parentDims[i]); |
| 188 | if (outDims[i] > parentDims[i]) { |
| 189 | AF_ERROR("Size mismatch between input and output", AF_ERR_SIZE); |
| 190 | } |
| 191 | } |
| 192 | return outDims; |
| 193 | } |
| 194 | |
| 195 | dim4 toOffset(const vector<af_seq> &seqs, const dim4 &parentDims) { |
| 196 | dim4 outOffsets(0, 0, 0, 0); |
no test coverage detected