MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / does_exist

Function does_exist

lesson7-Detection/src/Detector.cpp:93–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93inline bool does_exist(const std::string& name) {
94 struct stat buffer;
95 return (stat(name.c_str(), &buffer) == 0);
96}
97
98void Detector::Train(std::string train_val_path, std::string image_type, int num_epochs, int batch_size,
99 float learning_rate, std::string save_path, std::string pretrained_path) {

Callers 1

TrainMethod · 0.85

Calls 2

statClass · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected