MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / write

Function write

imperative/python/megengine/xla/lower.py:120–127  ·  view source on GitHub ↗
(var_ids, hlo_nodes)

Source from the content-addressed store, hash-verified

118
119 # update env with var_ids and ir.Values
120 def write(var_ids, hlo_nodes):
121 assert isinstance(var_ids, (list, tuple))
122 assert isinstance(hlo_nodes, (map, list, tuple))
123 hlo_nodes = list(hlo_nodes)
124 assert len(var_ids) == len(hlo_nodes), (len(var_ids), len(hlo_nodes))
125 for vid, node in zip(var_ids, hlo_nodes):
126 assert vid not in env
127 env[vid] = node
128
129 assert len(args) == len(trace_result.inputs)
130 assert len(consts) == len(trace_result.consts)

Callers 15

lowering_opsFunction · 0.85
dumpMethod · 0.85
write_podMethod · 0.85
invokeFunction · 0.85
call_cndrv_forksafeFunction · 0.85
call_cuda_forksafeFunction · 0.85
dump_cacheMethod · 0.85
reduce_fwdFunction · 0.85
compute2dFunction · 0.85
compute2d_hwcd4Function · 0.85

Calls 1

listFunction · 0.85

Tested by

no test coverage detected