Lines Matching refs:op

214         const auto& op = testSubgraph.operands[i];  in createSubgraph()  local
217 if (op.lifetime == TestOperandLifeTime::CONSTANT_COPY) { in createSubgraph()
221 .length = static_cast<int64_t>(op.data.size()), in createSubgraph()
223 constCopies->push_back(&op.data); in createSubgraph()
224 *constCopySize += op.data.alignedSize(); in createSubgraph()
225 } else if (op.lifetime == TestOperandLifeTime::CONSTANT_REFERENCE) { in createSubgraph()
229 .length = static_cast<int64_t>(op.data.size()), in createSubgraph()
231 constReferences->push_back(&op.data); in createSubgraph()
232 *constRefSize += op.data.alignedSize(); in createSubgraph()
233 } else if (op.lifetime == TestOperandLifeTime::SUBGRAPH) { in createSubgraph()
236 .offset = *op.data.get<uint32_t>(), in createSubgraph()
242 if (op.type == TestOperandType::TENSOR_QUANT8_SYMM_PER_CHANNEL) { in createSubgraph()
245 .scales = op.channelQuant.scales, in createSubgraph()
246 .channelDim = static_cast<int32_t>(op.channelQuant.channelDim)}); in createSubgraph()
249 operands[i] = {.type = static_cast<OperandType>(op.type), in createSubgraph()
250 .dimensions = utils::toSigned(op.dimensions).value(), in createSubgraph()
251 .scale = op.scale, in createSubgraph()
252 .zeroPoint = op.zeroPoint, in createSubgraph()
253 .lifetime = static_cast<OperandLifeTime>(op.lifetime), in createSubgraph()
261 operations.begin(), [](const TestOperation& op) -> Operation { in createSubgraph() argument
262 return {.type = static_cast<OperationType>(op.type), in createSubgraph()
263 .inputs = utils::toSigned(op.inputs).value(), in createSubgraph()
264 .outputs = utils::toSigned(op.outputs).value()}; in createSubgraph()
410 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest() local
411 if (op.data.size() == 0) { in createRequest()
430 const auto padding = roundUpBytesNeeded(op.data.size(), nn::kDefaultRequestMemoryPadding); in createRequest()
433 .length = static_cast<int64_t>(op.data.size()), in createRequest()
435 inputSize += (op.data.size() + padding); in createRequest()
443 const auto& op = testModel.main.operands[testModel.main.outputIndexes[i]]; in createRequest() local
463 size_t bufferSize = std::max<size_t>(op.data.size(), 1); in createRequest()
510 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest() local
511 const uint8_t* begin = op.data.get<uint8_t>(); in createRequest()
512 const uint8_t* end = begin + op.data.size(); in createRequest()
530 const auto& op = testModel.main.operands[testModel.main.outputIndexes[i]]; in getOutputBuffers() local
531 if (op.data.size() == 0) { in getOutputBuffers()
537 getBuffer(mBuffers[bufferIndex], op.data.size(), &buffer); in getOutputBuffers()