Home
last modified time | relevance | path

Searched refs:ResilientPreparedModel (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/neuralnetworks/utils/common/src/
DResilientPreparedModel.cpp42 auto protect(const ResilientPreparedModel& resilientPreparedModel, const FnType& fn) in protect()
68 nn::GeneralResult<std::shared_ptr<const ResilientPreparedModel>> ResilientPreparedModel::create( in create()
76 return std::make_shared<ResilientPreparedModel>( in create()
80 ResilientPreparedModel::ResilientPreparedModel(PrivateConstructorTag /*tag*/, in ResilientPreparedModel() function in android::hardware::neuralnetworks::utils::ResilientPreparedModel
88 nn::SharedPreparedModel ResilientPreparedModel::getPreparedModel() const { in getPreparedModel()
93 nn::GeneralResult<nn::SharedPreparedModel> ResilientPreparedModel::recover( in recover()
107 ResilientPreparedModel::execute(const nn::Request& request, nn::MeasureTiming measure, in execute()
118 ResilientPreparedModel::executeFenced(const nn::Request& request, in executeFenced()
132 nn::GeneralResult<nn::SharedExecution> ResilientPreparedModel::createReusableExecution( in createReusableExecution()
147 nn::GeneralResult<nn::SharedBurst> ResilientPreparedModel::configureExecutionBurst() const { in configureExecutionBurst()
[all …]
DResilientDevice.cpp185 ResilientPreparedModel::Factory makePreparedModel = [device = std::move(self), model, in prepareModel()
191 return ResilientPreparedModel::create(std::move(makePreparedModel)); in prepareModel()
203 ResilientPreparedModel::Factory makePreparedModel = [device = std::move(self), deadline, in prepareModelFromCache()
207 return ResilientPreparedModel::create(std::move(makePreparedModel)); in prepareModelFromCache()
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
DResilientPreparedModel.h33 class ResilientPreparedModel final : public nn::IPreparedModel,
34 public std::enable_shared_from_this<ResilientPreparedModel> {
40 static nn::GeneralResult<std::shared_ptr<const ResilientPreparedModel>> create(
43 explicit ResilientPreparedModel(PrivateConstructorTag tag, Factory makePreparedModel,
/hardware/interfaces/neuralnetworks/utils/common/test/
DResilientPreparedModelTest.cpp40 std::shared_ptr<const ResilientPreparedModel>>
47 auto buffer = ResilientPreparedModel::create(mockPreparedModelFactory->AsStdFunction()).value(); in setup()
71 const auto invalidPreparedModelFactory = ResilientPreparedModel::Factory{}; in TEST()
74 const auto result = ResilientPreparedModel::create(invalidPreparedModelFactory); in TEST()
86 const auto result = ResilientPreparedModel::create(invalidPreparedModelFactory); in TEST()