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

Function _is_dead_end

detectron2/export/shared.py:1017–1024  ·  view source on GitHub ↗
(versioned_blob)

Source from the content-addressed store, hash-verified

1015 removed_op_ids = set()
1016
1017 def _is_dead_end(versioned_blob):
1018 return not (
1019 versioned_blob in versioned_external_output
1020 or (
1021 len(consumer_map[versioned_blob]) > 0
1022 and all(x[0] not in removed_op_ids for x in consumer_map[versioned_blob])
1023 )
1024 )
1025
1026 for i, ssa_i in reversed(list(enumerate(ssa))):
1027 versioned_outputs = ssa_i[1]

Callers 1

remove_dead_end_opsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected