News for hackers. Stuff that matters.
Re:PyTorch 1.0 is out by black-tea on Sunday December 09, 2018 @03:47AM (#18640003)
You didn't pass a function to std::cout, you called it and passed its return value.
Re:PyTorch 1.0 is out by grandmczeb on Sunday December 09, 2018 @12:50PM (#18642161)
The way I interpret the GP, they're talking about passing closures as a function argument. In the example I pass func (a closure) to pass_func. Not sure what std::cout has to do with it?
Re:PyTorch 1.0 is out by black-tea on Sunday December 09, 2018 @03:31PM (#18643086)
Sorry, I misread the code.