Home / Class/ cdim_name Class — pytorch Architecture

cdim_name Class — pytorch Architecture

Architecture documentation for the cdim_name class in ValidateCompressedIndicesCommon.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/sparse/ValidateCompressedIndicesCommon.h lines 54–64

template <CDimName cdim_name, typename index_t>
INVARIANT_CHECK_FUNC_API _check_first_cidx_is_zero(
    const index_t& cidx,
    const index_t& zero) {
  const bool invariant = cidx == zero;
  if (cdim_name == CDimName::CRow) {
    _assert(invariant, "`crow_indices[..., 0] == 0` is not satisfied.");
  } else {
    _assert(invariant, "`ccol_indices[..., 0] == 0` is not satisfied.");
  }
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free