MCPcopy Create free account
hub / github.com/pytorch/pytorch / get_undefined_blobs

Function get_undefined_blobs

caffe2/python/core.py:1251–1259  ·  view source on GitHub ↗

Given a ssa in the format produced by get_ssa(), return a set of blobs that are used before they are defined, which corresponds to inputs at version 0.

(ssa)

Source from the content-addressed store, hash-verified

1249
1250
1251def get_undefined_blobs(ssa):
1252 """
1253 Given a ssa in the format produced by get_ssa(), return a set of blobs that
1254 are used before they are defined, which corresponds to inputs at version 0.
1255 """
1256 undef_blobs = set()
1257 for inputs, _outputs in ssa:
1258 undef_blobs |= set(name for (name, ver) in inputs if ver == 0)
1259 return undef_blobs
1260
1261
1262def get_output_producers(ssa):

Callers 2

clone_and_bind_netFunction · 0.85
ClonePartialMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…