MCPcopy Create free account
hub / github.com/Vchitect/Latte / construct_class_by_name

Function construct_class_by_name

tools/dnnlib/util.py:290–292  ·  view source on GitHub ↗

Finds the python class with the given name and constructs it with the given arguments.

(*args, class_name: str = None, **kwargs)

Source from the content-addressed store, hash-verified

288
289
290def construct_class_by_name(*args, class_name: str = None, **kwargs) -> Any:
291 """Finds the python class with the given name and constructs it with the given arguments."""
292 return call_func_by_name(*args, func_name=class_name, **kwargs)
293
294
295def get_module_dir_by_obj_name(obj_name: str) -> str:

Callers

nothing calls this directly

Calls 1

call_func_by_nameFunction · 0.85

Tested by

no test coverage detected