_get_padding_value Class — pytorch Architecture
Architecture documentation for the _get_padding_value class in NestedTensorUtils.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/nested/NestedTensorUtils.h lines 70–78
template <typename scalar_t>
inline scalar_t _get_padding_value(double padding_value, bool is_floating_point) {
if (std::isinf(padding_value) && !is_floating_point) {
return padding_value > 0
? std::numeric_limits<scalar_t>::max()
: std::numeric_limits<scalar_t>::lowest();
}
return static_cast<scalar_t>(padding_value);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free