_assert_match Class — pytorch Architecture
Architecture documentation for the _assert_match class in ComparisonUtils.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/ComparisonUtils.cpp lines 16–24
template<typename O, typename C>
static void _assert_match(const O& original, const C& compared, const std::string& name) {
TORCH_CHECK(!compared || original == compared.value(), "Tensor ",
name,
" mismatch! Expected: ",
compared.value(),
", Got: ",
original);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free