MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / check_samples_

Method check_samples_

mlx/data/buffer/FromVector.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void FromVector::check_samples_() const {
37 for (auto& sample : buffer_) {
38 if (sample.empty()) {
39 throw std::runtime_error("FromVector: unexpected empty sample");
40 }
41 }
42}
43
44} // namespace buffer
45} // namespace data

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected