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()
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*/, in prepareModel()
147 const std::vector<nn::TokenValuePair>& /*hints*/, in prepareModel()
148 const std::vector<nn::ExtensionNameAndPrefix>& /*extensionNameToPrefix*/) const { in prepareModel()
150 std::optional<nn::Model> maybeModelInShared; in prepareModel()
151 const nn::Model& modelInShared = in prepareModel()
167 nn::GeneralResult<nn::SharedPreparedModel> Device::prepareModelFromCache( in prepareModelFromCache()
168 nn::OptionalTimePoint /*deadline*/, const std::vector<nn::SharedHandle>& /*modelCache*/, in prepareModelFromCache()
169 const std::vector<nn::SharedHandle>& /*dataCache*/, const nn::CacheToken& /*token*/) const { in prepareModelFromCache()
170 return NN_ERROR(nn::ErrorStatus::GENERAL_FAILURE) in prepareModelFromCache()
174 nn::GeneralResult<nn::SharedBuffer> Device::allocate( in allocate()
175 const nn::BufferDesc& /*desc*/, in allocate()
176 const std::vector<nn::SharedPreparedModel>& /*preparedModels*/, in allocate()
177 const std::vector<nn::BufferRole>& /*inputRoles*/, in allocate()
178 const std::vector<nn::BufferRole>& /*outputRoles*/) const { in allocate()
179 return NN_ERROR(nn::ErrorStatus::GENERAL_FAILURE) in allocate()