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

Method size

lesson4-DatasetUtilization/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 };
36private:
37 std::vector<std::string> image_paths;
38 std::vector<int> labels;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected