Searched refs:InferencePriority (Results 1 – 7 of 7) sorted by relevance
/external/tensorflow/tensorflow/lite/delegates/gpu/ |
D | api.cc | 120 int GetPosition(const InferenceOptions& options, InferencePriority p) { in GetPosition() 128 InferencePriority p1, in GetRelativeImportance() 129 InferencePriority p2) { in GetRelativeImportance() 141 if (options.priority1 == InferencePriority::UNKNOWN || in IsValid() 142 options.priority2 == InferencePriority::UNKNOWN || in IsValid() 143 options.priority3 == InferencePriority::UNKNOWN) { in IsValid() 146 if (options.priority1 == InferencePriority::AUTO) { in IsValid() 149 if (options.priority2 == InferencePriority::AUTO && in IsValid() 150 options.priority3 != InferencePriority::AUTO) { in IsValid() 158 options.priority2 != InferencePriority::AUTO) { in IsValid() [all …]
|
D | api.h | 332 enum class InferencePriority { enum 363 InferencePriority priority1 = InferencePriority::MAX_PRECISION; 365 InferencePriority priority2 = InferencePriority::AUTO; 367 InferencePriority priority3 = InferencePriority::AUTO; 372 int GetPosition(const InferenceOptions& options, InferencePriority p); 395 InferencePriority p1, 396 InferencePriority p2);
|
D | delegate.cc | 48 InferencePriority ToPriority(int32_t priority) { in ToPriority() 51 return InferencePriority::AUTO; in ToPriority() 53 return InferencePriority::MAX_PRECISION; in ToPriority() 55 return InferencePriority::MIN_LATENCY; in ToPriority() 57 return InferencePriority::MIN_MEMORY_USAGE; in ToPriority() 59 return InferencePriority::UNKNOWN; in ToPriority() 305 options.priority1 = InferencePriority::MAX_PRECISION; in InitializeOpenClApi() 307 options.priority1 = InferencePriority::MIN_LATENCY; in InitializeOpenClApi()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/ |
D | gpu_api_delegate.cc | 40 InferencePriority ToPriority(int32_t priority) { in ToPriority() 44 return InferencePriority::MAX_PRECISION; in ToPriority() 46 return InferencePriority::MIN_LATENCY; in ToPriority() 48 return InferencePriority::MAX_PRECISION; in ToPriority() 150 options.priority1 = InferencePriority::MAX_PRECISION; in Prepare() 154 options.priority2 = InferencePriority::MIN_MEMORY_USAGE; in Prepare() 155 options.priority3 = InferencePriority::MIN_LATENCY; in Prepare() 159 options.priority2 = InferencePriority::MIN_LATENCY; in Prepare() 160 options.priority3 = InferencePriority::MIN_MEMORY_USAGE; in Prepare() 164 options.priority2 = InferencePriority::MIN_MEMORY_USAGE; in Prepare() [all …]
|
D | api.cc | 600 switch (GetPosition(options, InferencePriority::MAX_PRECISION)) { in GetPrecision() 628 if (GetRelativeImportance(options, InferencePriority::MIN_LATENCY, in GetStorageTypeFromOptions() 629 InferencePriority::MIN_MEMORY_USAGE) == in GetStorageTypeFromOptions()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/testing/ |
D | internal_api_samples.cc | 165 options.priority1 = InferencePriority::MIN_LATENCY; in RunModelSampleWithInternalAPI() 166 options.priority2 = InferencePriority::MIN_MEMORY_USAGE; in RunModelSampleWithInternalAPI() 167 options.priority3 = InferencePriority::MAX_PRECISION; in RunModelSampleWithInternalAPI() 289 options.priority1 = InferencePriority::MIN_LATENCY; in RunModelSampleWithInternalAPISerializedKernels() 290 options.priority2 = InferencePriority::MIN_MEMORY_USAGE; in RunModelSampleWithInternalAPISerializedKernels() 291 options.priority3 = InferencePriority::MAX_PRECISION; in RunModelSampleWithInternalAPISerializedKernels()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/ |
D | api2.cc | 558 GetPosition(options_, InferencePriority::MAX_PRECISION) > 1; in Build() 561 GetPosition(options_, InferencePriority::MIN_LATENCY) == 1; in Build() 562 if (GetRelativeImportance(options_, InferencePriority::MIN_MEMORY_USAGE, in Build() 563 InferencePriority::MIN_LATENCY) == in Build()
|