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

Function incr_subtensor

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

Source from the content-addressed store, hash-verified

217
218
219def incr_subtensor(input, value, tuple_val):
220 input, tensors, items = unpack_getitem(input, tuple_val)
221 op = builtin.IncrSubtensor(items)
222 return invoke_op(op, (input, value, *tensors))
223
224
225def advance_indexing(input, tuple_val):

Callers 1

test_subtensorFunction · 0.85

Calls 2

unpack_getitemFunction · 0.85
invoke_opFunction · 0.85

Tested by

no test coverage detected