//! Shared utilities for reduction backward implementations
use crateResult;
use crateRuntime;
use crateTensor;
/// Ensure a tensor is contiguous, making a copy if necessary.
///
/// Thin by-value wrapper around the crate-wide
/// [`crate::autograd::ops::ensure_contiguous`] helper, kept because callers
/// in this module pass freshly-produced owned tensors (e.g. from
/// `broadcast_to`) rather than borrows.
pub