| 1674 | } |
| 1675 | |
| 1676 | size_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 | } |
no test coverage detected