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

Function HashComputation

tensorflow/compiler/xla/python/xla.cc:129–133  ·  view source on GitHub ↗

Hashes the HLO module.

Source from the content-addressed store, hash-verified

127
128// Hashes the HLO module.
129StatusOr<uint64> HashComputation(const XlaComputation& computation) {
130 TF_ASSIGN_OR_RETURN(std::shared_ptr<HloModule> hlo_module,
131 GetHloModule(computation));
132 return hlo_module->Hash();
133}
134
135// Registers a 'fn_capsule' as a CPU custom call target.
136// 'fn_capsule' must be a void* pointer encapsulated in a PyCapsule object,

Callers

nothing calls this directly

Calls 3

GetHloModuleFunction · 0.85
TF_ASSIGN_OR_RETURNFunction · 0.50
HashMethod · 0.45

Tested by

no test coverage detected