MCPcopy Create free account
hub / github.com/NVIDIA/DALI / ExtractPythonAttr

Function ExtractPythonAttr

dali/python/backend_impl.cc:451–453  ·  view source on GitHub ↗

* @brief Extracts attribute named `attr_name` from the python object. * * @param object python object. * @param attr_name name of the requested attribute. */

Source from the content-addressed store, hash-verified

449 * @param attr_name name of the requested attribute.
450 */
451auto ExtractPythonAttr(py::object &&object, const char *attr_name) {
452 return object.attr(attr_name);
453}
454
455/**
456 * @brief Extracts nested attribute from the python object.

Callers 1

FromPythonTrampolineFunction · 0.85

Calls 1

attrMethod · 0.80

Tested by

no test coverage detected