1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Tensor Reduction Operations - Modular Architecture
//!
//! This module has been refactored into a modular architecture for better maintainability
//! and organization. The functionality has been split into specialized modules by operation type:
//!
//! ## Module Organization
//!
//! - **common**: Shared helper functions and utilities
//! - **statistical**: Basic statistical reduction operations (sum, mean, max, min, prod, variance)
//! - **argops**: Argument-based operations (argmax, argmin, topk)
//! - **cumulative**: Cumulative operations (cumsum, cumprod)
//! - **boolean**: Boolean reduction operations (all, any)
//! - **segment**: Segment-based reduction operations (segment_sum, segment_mean, segment_max)
//!
//! All operations maintain 100% backward compatibility through strategic re-exports.
// Import the modularized tensor reduction functionality
// Re-export all operations for backward compatibility
// Statistical operations
pub use ;
// Argument operations
pub use ;
// Cumulative operations
pub use ;
// Boolean operations
pub use ;
// Segment operations
pub use ;
// Re-export common utilities for internal use by other modules
pub use normalize_axis;