MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / BuildOperatorByTypeMap

Function BuildOperatorByTypeMap

tensorflow/lite/toco/tflite/operator.cc:2663–2674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2661} // namespace
2662
2663std::map<OperatorType, std::unique_ptr<BaseOperator>> BuildOperatorByTypeMap(
2664 bool enable_select_tf_ops) {
2665 std::map<OperatorType, std::unique_ptr<BaseOperator>> result;
2666
2667 std::vector<std::unique_ptr<BaseOperator>> ops =
2668 BuildOperatorList(enable_select_tf_ops);
2669 for (auto& op : ops) {
2670 result[op->type()] = std::move(op);
2671 }
2672
2673 return result;
2674}
2675
2676std::map<string, std::unique_ptr<BaseOperator>> BuildOperatorByNameMap(
2677 bool enable_select_tf_ops) {

Callers 9

ExportFunction · 0.85
OperatorTestClass · 0.85
TEST_FFunction · 0.85
SimpleVersioningTestFunction · 0.85
SimpleMulVersioningTestFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85

Calls 2

BuildOperatorListFunction · 0.85
typeMethod · 0.65

Tested by 6

TEST_FFunction · 0.68
SimpleVersioningTestFunction · 0.68
SimpleMulVersioningTestFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68