MCPcopy
hub / github.com/dmlc/dgl / __getitem__

Method __getitem__

python/dgl/_ffi/function.py:135–138  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

133 check_call(_LIB.DGLModImport(self.handle, module.handle))
134
135 def __getitem__(self, name):
136 if not isinstance(name, string_types):
137 raise ValueError("Can only take string as function name")
138 return self.get_function(name)
139
140 def __call__(self, *args):
141 if self._entry:

Callers

nothing calls this directly

Calls 1

get_functionMethod · 0.95

Tested by

no test coverage detected