在non_decresing
控制台中运行我的let non_decreasing xs =
List.fold_right
(fun x outer ->
match outer with
| [] -> [[x]]
| outer_hd :: outer_tl ->
if x <= List.hd outer_hd then
(x :: outer_hd) :: outer_tl
else
[x] :: outer)
xs
[]
代码用于训练神经网络时,出现以下错误,
python
ValueError:无法为形状为((?,2)'的Tensor'targets / Y:0'输入形状(24,5)的值
如何解决这个问题,谢谢。