Home
last modified time | relevance | path

Searched refs:BuiltinOperator (Results 1 – 25 of 94) sorted by relevance

1234

/external/tensorflow/tensorflow/lite/toco/tflite/
Doperator.cc68 const ::tflite::BuiltinOperator op, const OperatorSignature& op_signature) { in GetVersioningOpSig()
90 : public BuiltinOperator<AveragePoolOperator, ::tflite::Pool2DOptions,
93 using BuiltinOperator::BuiltinOperator;
119 : public BuiltinOperator<ConvOperator, ::tflite::Conv2DOptions,
122 using BuiltinOperator::BuiltinOperator;
149 : public BuiltinOperator<DepthwiseConvOperator,
153 using BuiltinOperator::BuiltinOperator;
192 class Add : public BuiltinOperator<AddOperator, ::tflite::AddOptions,
195 using BuiltinOperator::BuiltinOperator;
212 class AddN : public BuiltinOperator<AddNOperator, ::tflite::AddNOptions,
[all …]
Dbuiltin_operator.h33 class BuiltinOperator : public BaseOperator {
38 BuiltinOperator(::tflite::BuiltinOperator op, OperatorType type) in BuiltinOperator() function
75 ::tflite::BuiltinOperator builtin_op() const { return builtin_op_; } in builtin_op()
78 const ::tflite::BuiltinOperator builtin_op_;
Dsimple_operator.h36 SimpleOperator(::tflite::BuiltinOperator op, OperatorType type) in SimpleOperator()
55 ::tflite::BuiltinOperator builtin_op() const { return builtin_op_; } in builtin_op()
58 const ::tflite::BuiltinOperator builtin_op_;
Dexport.cc38 using ::tflite::BuiltinOperator;
86 const std::map<std::string, BuiltinOperator>& GetBuiltinOpsMap() { in GetBuiltinOpsMap()
87 static std::map<std::string, BuiltinOperator>* builtin_ops = nullptr; in GetBuiltinOpsMap()
89 builtin_ops = new std::map<std::string, BuiltinOperator>(); in GetBuiltinOpsMap()
92 BuiltinOperator op = static_cast<BuiltinOperator>(i); in GetBuiltinOpsMap()
299 std::map<std::string, BuiltinOperator> builtin_ops; in ExportOperatorCodes()
301 BuiltinOperator op = static_cast<BuiltinOperator>(i); in ExportOperatorCodes()
Dexport.h103 OperatorKey(::tflite::BuiltinOperator type, const std::string& custom_code, in OperatorKey()
109 ::tflite::BuiltinOperator type() const { return type_; } in type()
154 ::tflite::BuiltinOperator type_ = ::tflite::BuiltinOperator_CUSTOM;
/external/tensorflow/tensorflow/lite/
Dmutable_op_resolver.h40 struct ValueHasher<tflite::BuiltinOperator> {
41 size_t operator()(const tflite::BuiltinOperator& v) const {
64 const TfLiteRegistration* FindOp(tflite::BuiltinOperator op,
67 void AddBuiltin(tflite::BuiltinOperator op,
69 void AddBuiltin(tflite::BuiltinOperator op,
79 typedef std::pair<tflite::BuiltinOperator, int> BuiltinOperatorKey;
Dmutable_op_resolver.cc27 const TfLiteRegistration* MutableOpResolver::FindOp(tflite::BuiltinOperator op, in FindOp()
39 void MutableOpResolver::AddBuiltin(tflite::BuiltinOperator op, in AddBuiltin()
50 void MutableOpResolver::AddBuiltin(tflite::BuiltinOperator op, in AddBuiltin()
/external/tensorflow/tensorflow/lite/schema/
Dschema_utils.cc45 BuiltinOperator GetBuiltinCode(const OperatorCode* op_code) { in GetBuiltinCode()
51 static_cast<BuiltinOperator>(op_code->deprecated_builtin_code())); in GetBuiltinCode()
54 BuiltinOperator GetBuiltinCode(const OperatorCodeT* op_code) { in GetBuiltinCode()
58 return std::max(op_code->builtin_code, static_cast<BuiltinOperator>( in GetBuiltinCode()
Dschema_conversion_utils.h24 const BuiltinOperator builtin_code);
30 BuiltinOperator builtin_code = BuiltinOperator_ADD,
36 BuiltinOperator builtin_code = BuiltinOperator_ADD,
Dschema_conversion_utils.cc24 const BuiltinOperator builtin_code) { in ConvertBuiltinCodeToDeprecatedBuiltinCode()
41 flatbuffers::FlatBufferBuilder &_fbb, BuiltinOperator builtin_code, in CreateOperatorCode()
58 flatbuffers::FlatBufferBuilder &_fbb, BuiltinOperator builtin_code, in CreateOperatorCodeDirect()
Dschema_utils.h27 BuiltinOperator GetBuiltinCode(const OperatorCode *op_code);
29 BuiltinOperator GetBuiltinCode(const OperatorCodeT *op_code);
/external/tensorflow/tensorflow/lite/micro/
Dmicro_op_resolver.h45 virtual const TfLiteRegistration* FindOp(BuiltinOperator op) const = 0;
53 const TfLiteRegistration* FindOp(BuiltinOperator op, in FindOp()
66 virtual BuiltinParseFunction GetOpDataParser(BuiltinOperator op) const = 0;
Dmicro_mutable_op_resolver.h44 const TfLiteRegistration* FindOp(tflite::BuiltinOperator op) const override { in FindOp()
68 BuiltinOperator op) const override { in GetOpDataParser()
449 TfLiteStatus AddBuiltin(tflite::BuiltinOperator op, in AddBuiltin()
499 BuiltinOperator builtin_codes_[tOpCount];
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/tests/
Dmin_max_builder_test.cc25 MinMaxOpModel(tflite::BuiltinOperator op, const TensorData& input1, in MinMaxOpModel()
35 MinMaxOpModel(tflite::BuiltinOperator op, const TensorData& input1, in MinMaxOpModel()
80 void TestModel(tflite::BuiltinOperator op, const TensorData& input1, in TestModel()
98 void TestModelConstInput(tflite::BuiltinOperator op, const TensorData& input1, in TestModelConstInput()
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dlogging_op_resolver.h45 const TfLiteRegistration* FindOp(BuiltinOperator op,
47 KernelEvalFuncPtr GetWrappedKernelInvoke(BuiltinOperator op,
Dcalibration_common.h26 using BuiltinOperatorKey = std::pair<BuiltinOperator, int>;
59 BuiltinOperator builtin_op_code;
Dlogging_op_resolver.cc80 const TfLiteRegistration* LoggingOpResolver::FindOp(BuiltinOperator op, in FindOp()
91 KernelEvalFuncPtr LoggingOpResolver::GetWrappedKernelInvoke(BuiltinOperator op, in GetWrappedKernelInvoke()
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dunary_elementwise_tester.h55 void Test(tflite::BuiltinOperator unary_op, TfLiteDelegate* delegate) const;
58 std::vector<char> CreateTfLiteModel(tflite::BuiltinOperator unary_op) const;
Dbinary_elementwise_tester.h116 void Test(tflite::BuiltinOperator binary_op, TfLiteDelegate* delegate) const;
119 std::vector<char> CreateTfLiteModel(tflite::BuiltinOperator binary_op) const;
Dreduce_tester.h100 void Test(tflite::BuiltinOperator reduce_op, TfLiteDelegate* delegate) const;
103 std::vector<char> CreateTfLiteModel(tflite::BuiltinOperator reduce_op) const;
Dpool_2d_tester.h150 void Test(tflite::BuiltinOperator pool_op, TfLiteDelegate* delegate) const;
153 std::vector<char> CreateTfLiteModel(tflite::BuiltinOperator pool_op) const;
/external/tensorflow/tensorflow/lite/tools/versioning/
Druntime_version.cc50 std::string FindMinimumRuntimeVersionForOp(tflite::BuiltinOperator op_code, in FindMinimumRuntimeVersionForOp()
55 static const std::map<std::pair<BuiltinOperator, int>, std::string>* in FindMinimumRuntimeVersionForOp()
57 new std::map<std::pair<BuiltinOperator, int>, std::string>({ in FindMinimumRuntimeVersionForOp()
351 std::pair<BuiltinOperator, int> version_key = {op_code, op_version}; in FindMinimumRuntimeVersionForOp()
Druntime_version.h29 std::string FindMinimumRuntimeVersionForOp(tflite::BuiltinOperator op_code,
/external/tensorflow/tensorflow/lite/kernels/
Dlogical_test.cc32 std::initializer_list<int> input2_shape, BuiltinOperator op) { in LogicalOpModel()
51 void ConfigureBuiltinOp(BuiltinOperator op) { in ConfigureBuiltinOp()
Dmaximum_minimum_test.cc34 MaxMinOpModel(tflite::BuiltinOperator op, const TensorData& input1, in MaxMinOpModel()
44 MaxMinOpModel(tflite::BuiltinOperator op, const TensorData& input1, in MaxMinOpModel()
75 void TestModel(tflite::BuiltinOperator op, const TensorData& input1, in TestModel()

1234