MCPcopy Create free account
hub / github.com/cactus-compute/cactus / weighted_stats_pool

Method weighted_stats_pool

cactus/graph/graph_builder.cpp:1676–1682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1674}
1675
1676size_t CactusGraph::weighted_stats_pool(size_t input, size_t weights) {
1677 const auto& xin = get_output_buffer(input);
1678 size_t batch = xin.shape[0];
1679 size_t features = 1;
1680 for (size_t i = 1; i < xin.shape.size() - 1; ++i) features *= xin.shape[i];
1681 return add_node(OpType::WEIGHTED_STATS_POOL, {input, weights}, {batch, features * 2});
1682}

Callers 1

build_graph_maskedMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected