ext/torch/wrap_outputs.h in torch-rb-0.4.2 vs ext/torch/wrap_outputs.h in torch-rb-0.5.0

- old
+ new

@@ -88,5 +88,12 @@ for (auto& t : x) { a.push(to_ruby<torch::Tensor>(t)); } return Object(a); } + +inline Object wrap(std::tuple<double, double> x) { + Array a; + a.push(to_ruby<double>(std::get<0>(x))); + a.push(to_ruby<double>(std::get<1>(x))); + return Object(a); +}