Home
last modified time | relevance | path

Searched refs:unsignedDimensions (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp259 const auto unsignedDimensions = ::android::nn::toUnsigned(dimensions); in copyFrom() local
260 if (!unsignedDimensions.has_value()) { in copyFrom()
261 return toAStatus(ErrorStatus::INVALID_ARGUMENT, unsignedDimensions.error().message); in copyFrom()
264 if (!validateDimensions(unsignedDimensions.value())) { in copyFrom()
334 auto unsignedDimensions = ::android::nn::toUnsigned(desc.dimensions).value(); in allocate() local
336 unsignedDimensions.data()) != in allocate()
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidl.cpp291 const auto unsignedDimensions = toUnsigned(dimensions); in copyFrom() local
292 if (!unsignedDimensions.has_value()) { in copyFrom()
294 unsignedDimensions.error().message); in copyFrom()
296 const auto status = copyFromInternal(src, unsignedDimensions.value(), kBuffer); in copyFrom()
301 kBuffer->updateDimensions(unsignedDimensions.value()); in copyFrom()
364 const auto unsignedDimensions = toUnsigned(outputShapes[i].dimensions).value(); in updateDeviceMemories() local
365 if (!bufferWrappers[poolIndex]->updateDimensions(unsignedDimensions)) { in updateDeviceMemories()