(f)
| 9 | from cerebras.sdk.runtime.sdkruntimepybind import MemcpyDataType, MemcpyOrder |
| 10 | |
| 11 | def float_to_hex(f): |
| 12 | return hex(struct.unpack("<I", struct.pack("<f", f))[0]) |
| 13 | |
| 14 | def make_u48(words): |
| 15 | return words[0] + (words[1] << 16) + (words[2] << 32) |