Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AllentDan/LibtorchTutorials
/ size
Method
size
lesson5-TrainingVGG/dataSet.h:33–35 ·
view source on GitHub ↗
Return the length of data
Source
from the content-addressed store, hash-verified
31
}
32
// Return the length of data
33
torch::optional<size_t> size() const override {
34
return image_paths.size();
35
}
36
private:
37
std::vector<std::string> image_paths;
38
std::vector<int> labels;
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected