| 230 | } |
| 231 | |
| 232 | Sample to_sample(py::dict s) { |
| 233 | Sample res; |
| 234 | for (auto& el : s) { |
| 235 | std::string key = el.first.cast<std::string>(); |
| 236 | res[key] = to_array(el.second); |
| 237 | } |
| 238 | return res; |
| 239 | } |
| 240 | |
| 241 | } // namespace pybind |
| 242 | } // namespace mlx |
no test coverage detected