Home
last modified time | relevance | path

Searched refs:OpTypePattern (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/utils/
Dpattern_utils.h128 struct OpTypePattern { struct
132 std::vector<OpTypePattern> children; argument
136 for (const OpTypePattern& child : children) { in DebugString() argument
185 bool GetMatchedNodes(const OpTypePattern& pattern, MutableNodeView* node_view,
196 bool DoesOpTypePatternMatch(const OpTypePattern& pattern,
Dpattern_utils_test.cc66 OpTypePattern GetMatMulBiasAddGeluPattern() { in GetMatMulBiasAddGeluPattern()
70 OpTypePattern pattern_syntax{"Mul", "my_gelu", NodeStatus::kReplace, in GetMatMulBiasAddGeluPattern()
162 OpTypePattern pattern{"E", "my_e", NodeStatus::kReplace, in TEST_F()
236 OpTypePattern pattern{"E", "my_e", NodeStatus::kReplace, in TEST_F()
322 OpTypePattern pattern{"E", "my_e", NodeStatus::kReplace, in TEST_F()
357 OpTypePattern pattern = GetMatMulBiasAddGeluPattern(); in TEST_F()
393 OpTypePattern pattern = GetMatMulBiasAddGeluPattern(); in TEST_F()
414 OpTypePattern pattern = GetMatMulBiasAddGeluPattern(); in TEST_F()
Dpattern_utils.cc28 const OpTypePattern& pattern, MutableNodeView* node_view, in DoesOpTypePatternMatch()
88 const OpTypePattern& child_pattern = pattern.children[i]; in DoesOpTypePatternMatch()
104 const OpTypePattern& pattern, MutableNodeView* node_view, in GetMatchedNodes()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dtransform_utils.h147 struct OpTypePattern { struct
149 std::vector<OpTypePattern> inputs; argument
170 Status GetOpTypeMatches(const OpTypePattern& pattern,
174 bool DoesOpTypeMatch(const NodeDef& node, const OpTypePattern& pattern,
199 const GraphDef& input_graph_def, const OpTypePattern& pattern,
Dtransform_utils.cc266 string OpTypePattern::DebugString() const { in DebugString()
268 for (const OpTypePattern& input : inputs) { in DebugString()
291 Status GraphMatcher::GetOpTypeMatches(const OpTypePattern& pattern, in GetOpTypeMatches()
309 const NodeDef& node, const OpTypePattern& pattern, in DoesOpTypeMatch()
352 const OpTypePattern& input_pattern = pattern.inputs[i]; in DoesOpTypeMatch()
364 const GraphDef& input_graph_def, const OpTypePattern& pattern, in ReplaceMatchingOpTypes()
Dremove_nodes.cc56 OpTypePattern pattern = {op}; in RemoveNodes()
Dsparsify_gather.cc226 const TransformFuncContext& context, const OpTypePattern& pattern, in SparsifyGatherInternal()
564 const OpTypePattern gather_pattern = in SparsifyGather()
575 const OpTypePattern gather_v2_pattern = in SparsifyGather()
DREADME.md856 this easy, the Graph Transform Tool provides the `OpTypePattern` syntax. This is
880 OpTypePattern conv_pattern({"Conv2D", {{"*"}, {"Const"}}});
887 OpTypePattern conv_pattern({
950 `ReplaceMatchingOpTypes` helper. This takes in a graph, an `OpTypePattern`
Dquantize_nodes.cc539 OpTypePattern pattern = {"*"}; in HoistFakeQuants()