MCPcopy Create free account
hub / github.com/bytedance/bolt / reduce

Function reduce

bolt/python/Aggregate.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67pybind11::object reduce(pybind11::object& accumulator) {
68 return bolt::python::pyTry<pybind11::object>(
69 [&]() { return accumulator.attr("reduce")(); },
70 [&]() {
71 return fmt::format(
72 "Failure during call to 'reduce()' method from python object of type: '{}'.",
73 bolt::python::pyInstanceTypeStr(accumulator));
74 });
75}
76
77pybind11::object initAggregator(pybind11::object& cls) {
78 return bolt::python::pyTry<pybind11::object>(

Callers 5

MakeTensorMethod · 0.85
extractValuesMethod · 0.85
reduceMethod · 0.85
reduceMethod · 0.85
reduceMethod · 0.85

Calls 1

pyInstanceTypeStrFunction · 0.85

Tested by 1

MakeTensorMethod · 0.68