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

Method FusionCount

tensorflow/compiler/xla/service/defuser_test.cc:31–39  ·  view source on GitHub ↗

Returns the number of fusion instructions in the module.

Source from the content-addressed store, hash-verified

29 protected:
30 // Returns the number of fusion instructions in the module.
31 int FusionCount(const HloModule* m) {
32 int count = 0;
33 for (HloComputation* computation : m->computations()) {
34 if (computation->IsFusionComputation()) {
35 count++;
36 }
37 }
38 return count;
39 }
40
41 Defuser defuser_;
42 const Shape shape_ = ShapeUtil::MakeShape(F32, {2, 2});

Callers

nothing calls this directly

Calls 2

computationsMethod · 0.80
IsFusionComputationMethod · 0.80

Tested by

no test coverage detected