MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / get_producer_map

Function get_producer_map

detectron2/export/shared.py:314–324  ·  view source on GitHub ↗

Return dict from versioned blob to (i, j), where i is index of producer op, j is the index of output of that op.

(ssa)

Source from the content-addressed store, hash-verified

312
313
314def get_producer_map(ssa):
315 """
316 Return dict from versioned blob to (i, j),
317 where i is index of producer op, j is the index of output of that op.
318 """
319 producer_map = {}
320 for i in range(len(ssa)):
321 outputs = ssa[i][1]
322 for j, outp in enumerate(outputs):
323 producer_map[outp] = (i, j)
324 return producer_map
325
326
327def get_consumer_map(ssa):

Callers 3

get_params_from_init_netFunction · 0.85
rename_op_inputFunction · 0.85
_get_dependency_chainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected