Hashes the HLO module.
| 127 | |
| 128 | // Hashes the HLO module. |
| 129 | StatusOr<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, |
nothing calls this directly
no test coverage detected