MCPcopy Create free account
hub / github.com/MeshInfra/WaferLLM / float_to_hex

Function float_to_hex

Prefill/launch_sim.py:11–12  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected