TestingCase Class — pytorch Architecture
Architecture documentation for the TestingCase 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 731–759
class TestingCase {
public:
friend class TestCaseBuilder<T, U>;
static TestCaseBuilder<T, U> getBuilder() { return TestCaseBuilder<T, U>{}; }
bool checkSpecialValues() const {
//this will be used to check nan, infs, and other special cases
return specialCheck;
}
size_t getTrialCount() const { return trials; }
bool isBitwise() const { return bitwise; }
const std::vector<CheckWithinDomains<U>>& getDomains() const {
return domains;
}
const std::vector<CustomCheck<T>>& getCustomChecks() const {
return customCheck;
}
TestSeed getTestSeed() const {
return testSeed;
}
private:
// if domains is empty we will test default
std::vector<CheckWithinDomains<U>> domains;
std::vector<CustomCheck<T>> customCheck;
// its not used for now
bool specialCheck = false;
bool bitwise = false; // test bitlevel
size_t trials = 0;
TestSeed testSeed;
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free