From 5eea9d7ca9a514b2228cd4cd060d117b5faaa395 Mon Sep 17 00:00:00 2001 From: Ryosuke Okuta Date: Tue, 22 Aug 2017 03:43:25 +0900 Subject: [PATCH] Fix import --- chainer/functions/array/flatten.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chainer/functions/array/flatten.py b/chainer/functions/array/flatten.py index 50b51d19a639..984d2b47e9ac 100644 --- a/chainer/functions/array/flatten.py +++ b/chainer/functions/array/flatten.py @@ -1,4 +1,4 @@ -from chainer.functions.array import reshape +import chainer def flatten(x): @@ -37,4 +37,4 @@ def flatten(x): array([0, 1, 2, 3, 4, 5, 6, 7]) """ - return reshape.reshape(x, (x.size,)) + return chainer.functions.reshape(x, (x.size,))