getTrialCount Class — pytorch Architecture
Architecture documentation for the getTrialCount class in vec_test_all_types.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/test/vec_test_all_types.h lines 707–725
template<class T>
int getTrialCount(int test_trials, int domains_size) {
int trialCount;
int trial_default = 1;
if (sizeof(T) <= 2) {
//half coverage for byte
trial_default = 128;
}
else {
//2*65536
trial_default = 2 * std::numeric_limits<uint16_t>::max();
}
trialCount = test_trials < 1 ? trial_default : test_trials;
if (domains_size > 1) {
trialCount = trialCount / domains_size;
trialCount = trialCount < 1 ? 1 : trialCount;
}
return trialCount;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free