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

Function get_content

scripts/release_notes/namespace_check.py:34–41  ·  view source on GitHub ↗
(submod)

Source from the content-addressed store, hash-verified

32
33
34def get_content(submod):
35 mod = torch
36 if submod:
37 submod = submod.split(".")
38 for name in submod:
39 mod = getattr(mod, name)
40 content = dir(mod)
41 return content
42
43
44def namespace_filter(data):

Callers 1

runFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…