get_target_prime Class — pytorch Architecture
Architecture documentation for the get_target_prime class in LossCTC.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/LossCTC.cpp lines 48–55
template<typename target_t>
inline int64_t get_target_prime(target_t* target, int64_t offset, int64_t stride, int64_t idx, int64_t BLANK) {
if (idx % 2 == 0) {
return BLANK;
} else {
return target[offset + stride * (idx / 2)];
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free