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

Function set_subtensor

imperative/python/test/unit/core/test_indexing_op.py:213–216  ·  view source on GitHub ↗
(input, value, tuple_val)

Source from the content-addressed store, hash-verified

211
212
213def set_subtensor(input, value, tuple_val):
214 input, tensors, items = unpack_getitem(input, tuple_val)
215 op = builtin.SetSubtensor(items)
216 return invoke_op(op, (input, value, *tensors))
217
218
219def incr_subtensor(input, value, tuple_val):

Callers 1

test_subtensorFunction · 0.70

Calls 3

unpack_getitemFunction · 0.85
invoke_opFunction · 0.85
SetSubtensorMethod · 0.80

Tested by

no test coverage detected