Lines Matching refs:Result
44 using wrapper::Result;
80 Result setPreference(ExecutePreference preference) { in setPreference()
81 return static_cast<Result>(ANeuralNetworksCompilation_setPreference( in setPreference()
85 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { in setCaching()
87 return Result::BAD_DATA; in setCaching()
89 return static_cast<Result>(ANeuralNetworksCompilation_setCaching( in setCaching()
93 Result finish() { return static_cast<Result>(ANeuralNetworksCompilation_finish(mCompilation)); } in finish()
133 Result setInput(uint32_t index, const void* buffer, size_t length,
135 return static_cast<Result>(
139 Result setInputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
141 return static_cast<Result>(ANeuralNetworksExecution_setInputFromMemory(
145 Result setOutput(uint32_t index, void* buffer, size_t length,
147 return static_cast<Result>(
151 Result setOutputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
153 return static_cast<Result>(ANeuralNetworksExecution_setOutputFromMemory(
157 Result startCompute(Event* event) { in startCompute()
159 Result result = static_cast<Result>(ANeuralNetworksExecution_startCompute(mExecution, &ev)); in startCompute()
164 Result compute() { in compute()
167 return static_cast<Result>(ANeuralNetworksExecution_compute(mExecution)); in compute()
171 Result result = static_cast<Result>( in compute()
173 if (result != Result::NO_ERROR) { in compute()
178 result = static_cast<Result>(ANeuralNetworksEvent_wait(event)); in compute()
184 Result result = in compute()
185 static_cast<Result>(ANeuralNetworksBurst_create(mCompilation, &burst)); in compute()
186 if (result != Result::NO_ERROR) { in compute()
189 result = static_cast<Result>( in compute()
195 return Result::BAD_DATA; in compute()
211 Result getOutputOperandDimensions(uint32_t index, std::vector<uint32_t>* dimensions) { in getOutputOperandDimensions()
213 Result result = static_cast<Result>( in getOutputOperandDimensions()
216 if ((result != Result::NO_ERROR && result != Result::OUTPUT_INSUFFICIENT_SIZE) || in getOutputOperandDimensions()
220 result = static_cast<Result>(ANeuralNetworksExecution_getOutputOperandDimensions( in getOutputOperandDimensions()