[Torch5-bugs] Torch5: Min and Max fail to manage a 1D Tensor
Status: Pre-Alpha
Brought to you by:
andresy
|
From: Patrick Z. <pat...@gm...> - 2011-03-10 05:59:18
|
Dear developers, Min and Max functions fail to manage the 1D tensors, since the code tries to reduce the dimensionality by calling the THTensor_select function, and by adjusting the gradOutputPlusOneDim by adding one dimension... Of course, none of these steps are necessary when working with 1D tensors. I enclosed a patch that should solve the problem. Cordially, Patrick Zanon |