Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad Num Num Num Num attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad Num Num Num Num attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num keyword Num keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr ListLoad ListLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Index NameLoad Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Index NameLoad Slice Num Num Slice Num Num attr ListLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Index NameLoad Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Index NameLoad Slice Num Num Slice Num Num attr Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num NameLoad NameLoad NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult BinOpMult BinOpMult Num Num Num Num keyword AttributeLoad NameLoad attr attr Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num TupleLoad Num Num Num Num attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad Num keyword Num keyword Num keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Dict Str NameLoad Dict Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad
N/A N/A unittest N/A mock N/A numpy N/A six N/A chainer chainer cuda chainer functions chainer gradient_check chainer testing chainer.testing attr chainer.testing condition TestAveragePooling2D N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self x N/A N/A N/A N/A N/A numpy random uniform -1 1 N/A 2 3 4 3 astype N/A numpy float32 N/A N/A self gy N/A N/A N/A N/A N/A numpy random uniform -1 1 N/A 2 3 2 2 astype N/A numpy float32 N/A check_forward N/A N/A self x_data use_cudnn N/A True N/A N/A x N/A N/A chainer Variable x_data N/A y N/A N/A functions average_pooling_2d x 3 stride 2 pad 1 use_cudnn use_cudnn N/A y_data N/A N/A cuda to_cpu N/A y data N/A N/A N/A self assertEqual N/A N/A self gy shape N/A y_data shape N/A k N/A N/A N/A six moves range 2 N/A N/A c N/A N/A N/A six moves range 3 N/A N/A expect N/A N/A N/A numpy array N/A N/A N/A N/A N/A N/A self x N/A N/A k N/A c N/A 0 2 N/A 0 2 sum N/A N/A N/A N/A self x N/A N/A k N/A c N/A 0 2 N/A 1 3 sum N/A N/A N/A N/A N/A self x N/A N/A k N/A c N/A 1 4 N/A 0 2 sum N/A N/A N/A N/A self x N/A N/A k N/A c N/A 1 4 N/A 1 3 sum 9 N/A N/A N/A gradient_check assert_allclose expect N/A y_data N/A N/A k c N/A test_forward_cpu N/A N/A self N/A N/A N/A N/A N/A self check_forward N/A self x N/A N/A N/A condition retry 3 test_forward_gpu N/A N/A self N/A N/A N/A N/A N/A self check_forward N/A N/A cuda to_gpu N/A self x N/A N/A attr cudnn N/A N/A condition retry 3 test_forward_gpu_no_cudnn N/A N/A self N/A N/A N/A N/A N/A self check_forward N/A N/A cuda to_gpu N/A self x False N/A N/A attr gpu N/A N/A condition retry 3 check_backward N/A N/A self x_data y_grad use_cudnn N/A True N/A N/A N/A N/A gradient_check check_backward N/A N/A functions AveragePooling2D 3 2 1 False use_cudnn x_data y_grad eps 0.01 N/A test_backward_cpu N/A N/A self N/A N/A N/A N/A N/A self check_backward N/A self x N/A self gy N/A N/A N/A condition retry 3 test_backward_gpu N/A N/A self N/A N/A N/A N/A N/A self check_backward N/A N/A cuda to_gpu N/A self x N/A N/A cuda to_gpu N/A self gy N/A N/A attr cudnn N/A N/A condition retry 3 test_backward_gpu_no_cudnn N/A N/A self N/A N/A N/A N/A N/A self check_backward N/A N/A cuda to_gpu N/A self x N/A N/A cuda to_gpu N/A self gy False N/A N/A attr gpu N/A N/A condition retry 3 N/A TestAveragePooling2DCudnnCall N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self x N/A N/A N/A N/A N/A cuda cupy arange N/A N/A N/A 2 3 4 3 dtype N/A numpy float32 reshape 2 3 4 3 N/A N/A self gy N/A N/A N/A N/A N/A N/A cuda cupy random uniform -1 1 N/A 2 3 2 2 astype N/A numpy float32 N/A forward N/A N/A self N/A N/A N/A x N/A N/A chainer Variable N/A self x N/A N/A N/A functions max_pooling_2d x 3 stride 2 pad 1 cover_all False use_cudnn N/A self use_cudnn N/A test_call_cudnn_forward N/A N/A self N/A N/A N/A N/A N/A mock patch cupy.cudnn.cudnn.poolingForward func N/A N/A N/A N/A self forward N/A N/A N/A self assertEqual N/A func called N/A self use_cudnn N/A test_call_cudnn_backrward N/A N/A self N/A N/A N/A y N/A N/A self forward N/A N/A y grad N/A self gy N/A N/A N/A mock patch cupy.cudnn.cudnn.poolingBackward func N/A N/A N/A N/A y backward N/A N/A N/A self assertEqual N/A func called N/A self use_cudnn N/A N/A N/A N/A testing parameterize N/A use_cudnn True N/A use_cudnn False N/A attr cudnn N/A N/A N/A testing run_module __name__ __file__