Searched refs:ToolParam (Results 1 – 13 of 13) sorted by relevance
/external/tensorflow/tensorflow/lite/tools/ |
D | tool_params.cc | 27 void ToolParam::AssertHasSameType(ToolParam::ParamType a, in AssertHasSameType() 28 ToolParam::ParamType b) { in AssertHasSameType() 33 ToolParam::ParamType ToolParam::GetValueType<int32_t>() { in GetValueType() 34 return ToolParam::ParamType::TYPE_INT32; in GetValueType() 38 ToolParam::ParamType ToolParam::GetValueType<bool>() { in GetValueType() 39 return ToolParam::ParamType::TYPE_BOOL; in GetValueType() 43 ToolParam::ParamType ToolParam::GetValueType<float>() { in GetValueType() 44 return ToolParam::ParamType::TYPE_FLOAT; in GetValueType() 48 ToolParam::ParamType ToolParam::GetValueType<std::string>() { in GetValueType() 49 return ToolParam::ParamType::TYPE_STRING; in GetValueType() [all …]
|
D | tool_params_test.cc | 27 params.AddParam("some-int1", ToolParam::Create<int>(13)); in TEST() 28 params.AddParam("some-int2", ToolParam::Create<int>(17)); in TEST() 31 others.AddParam("some-int1", ToolParam::Create<int>(19)); in TEST() 32 others.AddParam("some-bool", ToolParam::Create<bool>(true)); in TEST() 46 params.AddParam("some-int1", ToolParam::Create<int>(13)); in TEST() 47 params.AddParam("some-int2", ToolParam::Create<int>(17)); in TEST() 50 others.AddParam("some-int1", ToolParam::Create<int>(19)); in TEST() 51 others.AddParam("some-bool", ToolParam::Create<bool>(true)); in TEST() 61 params.AddParam("some-int1", ToolParam::Create<int>(13)); in TEST() 62 params.AddParam("some-int2", ToolParam::Create<int>(17)); in TEST() [all …]
|
D | tool_params.h | 30 class ToolParam { 38 static std::unique_ptr<ToolParam> Create(const T& default_value) { in Create() 39 return std::unique_ptr<ToolParam>(new TypedToolParam<T>(default_value)); in Create() 54 virtual ~ToolParam() {} in ~ToolParam() 55 explicit ToolParam(ParamType type) : has_value_set_(false), type_(type) {} in ToolParam() function 59 virtual void Set(const ToolParam&) {} in Set() argument 61 virtual std::unique_ptr<ToolParam> Clone() const = 0; 73 class TypedToolParam : public ToolParam { 76 : ToolParam(GetValueType<T>()), value_(value) {} in TypedToolParam() 85 void Set(const ToolParam& other) override { in Set() [all …]
|
/external/tensorflow/tensorflow/lite/tools/delegates/ |
D | nnapi_delegate_provider.cc | 28 default_params_.AddParam("use_nnapi", ToolParam::Create<bool>(false)); in NnapiDelegateProvider() 30 ToolParam::Create<std::string>("")); in NnapiDelegateProvider() 32 ToolParam::Create<std::string>("")); in NnapiDelegateProvider() 34 ToolParam::Create<std::string>("")); in NnapiDelegateProvider() 36 ToolParam::Create<bool>(true)); in NnapiDelegateProvider() 38 ToolParam::Create<bool>(false)); in NnapiDelegateProvider()
|
D | gpu_delegate_provider.cc | 36 default_params_.AddParam("use_gpu", ToolParam::Create<bool>(false)); in GpuDelegateProvider() 39 ToolParam::Create<bool>(true)); in GpuDelegateProvider() 41 ToolParam::Create<bool>(true)); in GpuDelegateProvider() 44 default_params_.AddParam("gpu_backend", ToolParam::Create<std::string>("")); in GpuDelegateProvider() 48 ToolParam::Create<std::string>("")); in GpuDelegateProvider()
|
D | default_execution_provider.cc | 28 default_params_.AddParam("num_threads", ToolParam::Create<int32_t>(1)); in DefaultExecutionProvider() 30 ToolParam::Create<int32_t>(0)); in DefaultExecutionProvider() 32 ToolParam::Create<int32_t>(0)); in DefaultExecutionProvider()
|
D | hexagon_delegate_provider.cc | 36 default_params_.AddParam("use_hexagon", ToolParam::Create<bool>(false)); in HexagonDelegateProvider() 38 ToolParam::Create<std::string>("/data/local/tmp")); in HexagonDelegateProvider() 40 ToolParam::Create<bool>(false)); in HexagonDelegateProvider()
|
D | coreml_delegate_provider.cc | 35 default_params_.AddParam("use_coreml", ToolParam::Create<bool>(false)); in CoreMlDelegateProvider() 36 default_params_.AddParam("coreml_version", ToolParam::Create<int>(0)); in CoreMlDelegateProvider()
|
D | external_delegate_provider.cc | 43 ToolParam::Create<std::string>("")); in ExternalDelegateProvider() 45 ToolParam::Create<std::string>("")); in ExternalDelegateProvider()
|
D | xnnpack_delegate_provider.cc | 26 default_params_.AddParam("use_xnnpack", ToolParam::Create<bool>(false)); in XnnpackDelegateProvider()
|
/external/tensorflow/tensorflow/lite/tools/benchmark/ |
D | benchmark_params.h | 22 using BenchmarkParam = tflite::tools::ToolParam;
|
/external/tensorflow/tensorflow/lite/delegates/utils/dummy_delegate/ |
D | dummy_delegate_provider.cc | 27 ToolParam::Create<bool>(false)); in DummyDelegateProvider()
|
/external/tensorflow/tensorflow/lite/g3doc/performance/ |
D | implementing_delegate.md | 314 ToolParam::Create<bool>(false));
|