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

Method computations

tensorflow/compiler/xla/service/hlo_module.h:158–163  ·  view source on GitHub ↗

Gets the computations in this module. Returns a view of HloComputation*s, so you can iterate over this in the natural way: for (HloComputation* c : module->computations()) { ... }

Source from the content-addressed store, hash-verified

156 // for (HloComputation* c : module->computations()) { ... }
157 //
158 tensorflow::gtl::iterator_range<UnwrappingIterator<
159 std::vector<std::unique_ptr<HloComputation>>::const_iterator>>
160 computations() const {
161 return {MakeUnwrappingIterator(computations_.begin()),
162 MakeUnwrappingIterator(computations_.end())};
163 }
164 tensorflow::gtl::iterator_range<UnwrappingIterator<
165 std::vector<std::unique_ptr<HloComputation>>::iterator>>
166 computations() {

Callers 15

ImportMethod · 0.80
TEST_FFunction · 0.80
GetXfeedShapeFunction · 0.80
RealMainFunction · 0.80
FindInstructionFunction · 0.80
FindComputationFunction · 0.80
DoListCommandFunction · 0.80
DoInfoCommandFunction · 0.80
AddCalledComputationMethod · 0.80
ToStringMethod · 0.80
PropagateMethod · 0.80

Calls 3

MakeUnwrappingIteratorFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 15

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
CountCopiesFunction · 0.64
CountControlEdgesFunction · 0.64
CountFunction · 0.64
CountGetDimensionSizeMethod · 0.64
FusionCountMethod · 0.64
RunMethod · 0.64
RunOnModuleGroupMethod · 0.64
RunMethod · 0.64
AllReduceCountFunction · 0.64