From 271e5fbeb5160c522e9ba8fab3f172ea5c61ee55 Mon Sep 17 00:00:00 2001 From: Ryosuke Okuta Date: Mon, 21 Aug 2017 00:59:31 +0900 Subject: [PATCH] Fix det --- chainer/functions/math/det.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chainer/functions/math/det.py b/chainer/functions/math/det.py index 72d8d5f4c9b5..5c036339861f 100644 --- a/chainer/functions/math/det.py +++ b/chainer/functions/math/det.py @@ -108,6 +108,6 @@ def det(a): """ shape = (1, a.shape[0], a.shape[1]) - batched_a = reshape.Reshape(shape)(a) + batched_a = reshape.reshape(a, shape) batched_det = BatchDet()(batched_a) - return reshape.Reshape(())(batched_det) + return reshape.reshape(batched_det, ())