Lines Matching refs:slice

105     auto& slice = mCachedSlices[version];  in getSlice()  local
106 if (slice.mState == SliceState::UNINITIALIZED) { in getSlice()
107 slice = makeSlice(version); in getSlice()
109 if (slice.mState == SliceState::INVALID) { in getSlice()
113 slice.mModel, Mapper([&slice](uint32_t slicedOperationIndex) { in getSlice()
114 return slice.mSlicedOperationIndexToOrigIndex.at(slicedOperationIndex); in getSlice()
243 Slice* slice, std::map<uint32_t, uint32_t>* origOperandIndexToSlicedIndex, in processOperations() argument
249 auto& slicedOperands = slice->mModel.main.operands; in processOperations()
250 auto& slicedOperations = slice->mModel.main.operations; in processOperations()
272 slice->mSlicedOperationIndexToOrigIndex.push_back(origOperationIndex); in processOperations()
274 CHECK_EQ(slice->mSlicedOperationIndexToOrigIndex.size(), slicedOperations.size()); in processOperations()
330 extend(&slice->mModel.main.outputIndexes, slicedOperandIndex); in processOperations()
366 Slice slice; in makeSlice() local
370 slice.mModel = mModel; in makeSlice()
371 slice.mSlicedOperationIndexToOrigIndex = in makeSlice()
373 std::iota(slice.mSlicedOperationIndexToOrigIndex.begin(), in makeSlice()
374 slice.mSlicedOperationIndexToOrigIndex.end(), 0u); in makeSlice()
375 slice.mState = SliceState::NORMAL; in makeSlice()
376 return slice; in makeSlice()
381 auto& slicedOperands = slice.mModel.main.operands; in makeSlice()
408 slice.mState = SliceState::INVALID; in makeSlice()
409 return slice; in makeSlice()
454 &slicedOperands, &slice.mModel.main.inputIndexes, version, operandValuesSize, in makeSlice()
473 processOperations(&slice, &origOperandIndexToSlicedIndex, &origOperandToSlicedInputOperandIndex, in makeSlice()
481 slice.mModel.operandValues = mModel.operandValues; in makeSlice()
482 slice.mModel.pools = mModel.pools; in makeSlice()
493 graphDump(toName.str().c_str(), slice.mModel); in makeSlice()
497 slice.mState = invalid(slice.mModel, version, mStrictSlicing) ? SliceState::INVALID in makeSlice()
500 return slice; in makeSlice()