MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / type_helper

Function type_helper

include/bind.h:748–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746
747template <class... DTypes>
748std::function<py::object(const DTypes &..., py::args, py::kwargs)> type_helper(
749 const py::module &module, const std::string &name) {
750 return [module, name](const DTypes &...dtypes, py::args args, py::kwargs kwargs) {
751 auto full_name = signature(name, dtypes...);
752 return module.attr(py::str(full_name))(*args, **kwargs);
753 };
754}
755
756// Optimizer interface
757class pyLRSchedule : public py::class_<graphvite::LRSchedule> {

Callers

nothing calls this directly

Calls 1

signatureFunction · 0.70

Tested by

no test coverage detected