lambda_in Class — pytorch Architecture
Architecture documentation for the lambda_in class in DistributionsHelper.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/core/DistributionsHelper.h lines 252–265
template <typename T>
struct exponential_distribution {
C10_HOST_DEVICE inline exponential_distribution(T lambda_in) : lambda(lambda_in) {}
template <typename RNG>
C10_HOST_DEVICE inline T operator()(RNG* generator) const {
uniform_real_distribution<T> uniform(0.0, 1.0);
return transformation::exponential<T>(uniform(generator), lambda);
}
private:
T lambda;
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free