Lines Matching refs:nn

48 nn::GeneralResult<nn::Capabilities> capabilitiesCallback(V1_0::ErrorStatus status,  in capabilitiesCallback()
51 return nn::convert(capabilities); in capabilitiesCallback()
54 nn::GeneralResult<nn::Capabilities> getCapabilitiesFrom(V1_1::IDevice* device) { in getCapabilitiesFrom()
67 nn::GeneralResult<std::shared_ptr<const Device>> Device::create(std::string name, in create()
70 return NN_ERROR(nn::ErrorStatus::INVALID_ARGUMENT) in create()
74 return NN_ERROR(nn::ErrorStatus::INVALID_ARGUMENT) in create()
86 Device::Device(PrivateConstructorTag /*tag*/, std::string name, nn::Capabilities capabilities, in Device()
101 nn::Version Device::getFeatureLevel() const { in getFeatureLevel()
102 return nn::Version::ANDROID_P; in getFeatureLevel()
105 nn::DeviceType Device::getType() const { in getType()
106 return nn::DeviceType::UNKNOWN; in getType()
109 const std::vector<nn::Extension>& Device::getSupportedExtensions() const { in getSupportedExtensions()
113 const nn::Capabilities& Device::getCapabilities() const { in getCapabilities()
121 nn::GeneralResult<void> Device::wait() const { in wait()
127 nn::GeneralResult<std::vector<bool>> Device::getSupportedOperations(const nn::Model& model) const { in getSupportedOperations()
129 std::optional<nn::Model> maybeModelInShared; in getSupportedOperations()
130 const nn::Model& modelInShared = in getSupportedOperations()
143 nn::GeneralResult<nn::SharedPreparedModel> Device::prepareModel( in prepareModel()
144 const nn::Model& model, nn::ExecutionPreference preference, nn::Priority /*priority*/, in prepareModel()
145 nn::OptionalTimePoint /*deadline*/, const std::vector<nn::SharedHandle>& /*modelCache*/, in prepareModel()
146 const std::vector<nn::SharedHandle>& /*dataCache*/, const nn::CacheToken& /*token*/) const { in prepareModel()
148 std::optional<nn::Model> maybeModelInShared; in prepareModel()
149 const nn::Model& modelInShared = in prepareModel()
165 nn::GeneralResult<nn::SharedPreparedModel> Device::prepareModelFromCache( in prepareModelFromCache()
166 nn::OptionalTimePoint /*deadline*/, const std::vector<nn::SharedHandle>& /*modelCache*/, in prepareModelFromCache()
167 const std::vector<nn::SharedHandle>& /*dataCache*/, const nn::CacheToken& /*token*/) const { in prepareModelFromCache()
168 return NN_ERROR(nn::ErrorStatus::GENERAL_FAILURE) in prepareModelFromCache()
172 nn::GeneralResult<nn::SharedBuffer> Device::allocate( in allocate()
173 const nn::BufferDesc& /*desc*/, in allocate()
174 const std::vector<nn::SharedPreparedModel>& /*preparedModels*/, in allocate()
175 const std::vector<nn::BufferRole>& /*inputRoles*/, in allocate()
176 const std::vector<nn::BufferRole>& /*outputRoles*/) const { in allocate()
177 return NN_ERROR(nn::ErrorStatus::GENERAL_FAILURE) in allocate()