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

Function read

imperative/python/megengine/xla/lower.py:111–117  ·  view source on GitHub ↗
(var_ids)

Source from the content-addressed store, hash-verified

109
110 # read ir.Values from env according to var_ids
111 def read(var_ids):
112 assert isinstance(var_ids, (list, tuple))
113 ret = []
114 for vid in var_ids:
115 assert isinstance(vid, int)
116 ret.append(env[vid])
117 return ret
118
119 # update env with var_ids and ir.Values
120 def write(var_ids, hlo_nodes):

Callers 12

lowering_opsFunction · 0.85
read_into_tensorMethod · 0.85
read_sharedMethod · 0.85
read_podMethod · 0.85
invokeFunction · 0.85
call_cndrv_forksafeFunction · 0.85
call_cuda_forksafeFunction · 0.85
read_cacheMethod · 0.85
read_cacheMethod · 0.85
bfloat16.hppFile · 0.85
half.hppFile · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected