MCPcopy Create free account
hub / github.com/davisking/dlib / count_samples

Method count_samples

dlib/dnn/input.h:1162–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1160
1161 template<typename forward_iterator>
1162 long long count_samples(
1163 forward_iterator ibegin,
1164 forward_iterator iend
1165 ) const
1166 {
1167 return std::accumulate(ibegin, iend, 0,
1168 [](long long a, const auto& b) { return a + b.num_samples(); });
1169 }
1170 };
1171
1172// ----------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

num_samplesMethod · 0.45

Tested by

no test coverage detected