Lines Matching refs:Result

56 enum class Result {  enum
217 Result finish() { in finish()
219 auto result = static_cast<Result>(ANeuralNetworksModel_finish(mModel)); in finish()
220 if (result != Result::NO_ERROR) { in finish()
225 return Result::BAD_STATE; in finish()
320 Result wait() { return static_cast<Result>(ANeuralNetworksEvent_wait(mEvent)); } in wait()
362 Result setPreference(ExecutePreference preference) { in setPreference()
363 return static_cast<Result>(ANeuralNetworksCompilation_setPreference( in setPreference()
367 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { in setCaching()
369 return Result::BAD_DATA; in setCaching()
371 return static_cast<Result>(ANeuralNetworksCompilation_setCaching( in setCaching()
375 Result finish() { return static_cast<Result>(ANeuralNetworksCompilation_finish(mCompilation)); } in finish()
413 Result setInput(uint32_t index, const void* buffer, size_t length,
415 return static_cast<Result>(
419 Result setInputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
421 return static_cast<Result>(ANeuralNetworksExecution_setInputFromMemory(
425 Result setOutput(uint32_t index, void* buffer, size_t length,
427 return static_cast<Result>(
431 Result setOutputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
433 return static_cast<Result>(ANeuralNetworksExecution_setOutputFromMemory(
437 Result startCompute(Event* event) { in startCompute()
439 Result result = static_cast<Result>(ANeuralNetworksExecution_startCompute(mExecution, &ev)); in startCompute()
444 Result compute() { return static_cast<Result>(ANeuralNetworksExecution_compute(mExecution)); } in compute()
446 Result getOutputOperandDimensions(uint32_t index, std::vector<uint32_t>* dimensions) { in getOutputOperandDimensions()
448 Result result = static_cast<Result>( in getOutputOperandDimensions()
451 if ((result != Result::NO_ERROR && result != Result::OUTPUT_INSUFFICIENT_SIZE) || in getOutputOperandDimensions()
455 result = static_cast<Result>(ANeuralNetworksExecution_getOutputOperandDimensions( in getOutputOperandDimensions()