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

Function fill_like

imperative/python/megengine/xla/rules/tensor.py:207–208  ·  view source on GitHub ↗
(value, inp: HLOTensor)

Source from the content-addressed store, hash-verified

205
206
207def fill_like(value, inp: HLOTensor):
208 return fill(value, inp.shape, inp.dtype)
209
210
211def zeros_like(inp: HLOTensor):

Callers

nothing calls this directly

Calls 1

fillFunction · 0.85

Tested by

no test coverage detected