Module Import alias Import alias Import alias Import alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body Return NameLoad Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpDiv Num BinOpMult BinOpMult NameLoad NameLoad AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr IfExp AttributeLoad NameLoad attr NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Num Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr IfExp AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore IfExp AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore IfExp AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad BinOpMult Call NameLoad NameLoad Num keyword AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Slice Num NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore TupleLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Assign NameStore IfExp CompareIs AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str ListLoad Num ListLoad Num ListLoad Num ListLoad Num ListLoad Num Num ListLoad Num ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign TupleStore NameStore NameStore Call NameLoad Num Assign TupleStore NameStore NameStore Call NameLoad Num Assign TupleStore NameStore NameStore Call NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Call AttributeLoad NameLoad attr BinOpDiv Num BinOpMult BinOpMult NameLoad NameLoad AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Num keyword Num keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad NameStore body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BoolOpOr 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 chainer chainer cuda N/A chainer.functions F chainer.functions.connection deconvolution_2d chainer gradient_check chainer testing chainer.testing attr chainer.testing condition chainer.testing parameterize chainer.utils conv _pair N/A N/A x N/A N/A N/A N/A hasattr x __getitem__ N/A N/A x N/A N/A x x N/A TestDeconvolution2DFunction N/A N/A unittest TestCase N/A setUp N/A N/A self use_cudnn N/A True N/A N/A N/A kh kw N/A _pair N/A self ksize N/A N/A sh sw N/A _pair N/A self stride N/A N/A ph pw N/A _pair N/A self pad N/A N/A self W N/A N/A N/A N/A N/A numpy random normal 0 N/A N/A self wscale N/A N/A numpy sqrt N/A 1.0 N/A N/A kh kw N/A self in_channels N/A N/A self in_channels N/A self out_channels kh kw astype N/A numpy float32 N/A N/A self b N/A N/A self nobias None N/A N/A N/A N/A N/A numpy random uniform -1 1 N/A self out_channels astype N/A numpy float32 N/A N 2 N/A N/A inh inw N/A 4 3 N/A outh N/A N/A conv get_deconv_outsize inh kh sh ph N/A outw N/A N/A conv get_deconv_outsize inw kw sw pw N/A N/A self outsize N/A N/A self test_outsize N/A outh outw None N/A N/A self x N/A N/A N/A N/A N/A numpy random uniform -1 1 N/A N N/A self in_channels inh inw 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 N N/A self out_channels outh outw astype N/A numpy float32 N/A test_forward_consistency N/A N/A self N/A N/A N/A x_cpu N/A N/A chainer Variable N/A self x N/A W_cpu N/A N/A chainer Variable N/A self W N/A b_cpu N/A N/A self nobias None N/A N/A chainer Variable N/A self b N/A y_cpu N/A N/A F deconvolution_2d x_cpu W_cpu b_cpu stride N/A self stride pad N/A self pad outsize N/A self outsize use_cudnn N/A self use_cudnn N/A x_gpu N/A N/A chainer Variable N/A N/A cuda to_gpu N/A self x N/A W_gpu N/A N/A chainer Variable N/A N/A cuda to_gpu N/A self W N/A b_gpu N/A N/A self nobias None N/A N/A chainer Variable N/A N/A cuda to_gpu N/A self b N/A y_gpu N/A N/A F deconvolution_2d x_gpu W_gpu b_gpu stride N/A self stride pad N/A self pad outsize N/A self outsize use_cudnn N/A self use_cudnn N/A N/A N/A gradient_check assert_allclose N/A y_cpu data N/A N/A N/A y_gpu data get N/A N/A attr cudnn test_forward_consistency_im2col N/A N/A self N/A N/A N/A N/A N/A self test_forward_consistency N/A N/A attr gpu check_backward N/A N/A self x_data W_data b_data y_grad N/A N/A N/A xp N/A N/A cuda get_array_module x_data N/A N/A N/A self c_contiguous N/A N/A x_data N/A N/A xp asfortranarray x_data N/A W_data N/A N/A xp asfortranarray W_data N/A y_grad N/A N/A xp asfortranarray y_grad N/A N/A N/A self assertFalse N/A N/A x_data flags c_contiguous N/A N/A N/A self assertFalse N/A N/A W_data flags c_contiguous N/A N/A N/A self assertFalse N/A N/A y_grad flags c_contiguous N/A N/A b_data None N/A N/A b N/A N/A xp empty N/A N/A N/A len b_data 2 dtype N/A N/A self b dtype N/A N/A b N/A 2 b_data N/A b_data N/A b N/A 2 N/A N/A N/A self assertFalse N/A N/A b_data flags c_contiguous N/A args N/A x_data W_data N/A N/A b_data None N/A N/A args N/A args N/A b_data N/A N/A N/A gradient_check check_backward N/A N/A deconvolution_2d Deconvolution2DFunction N/A self stride N/A self pad N/A self outsize N/A self use_cudnn args 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 W N/A self b 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 b N/A N/A N/A self b None None N/A N/A cuda to_gpu N/A self b 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 W b N/A N/A cuda to_gpu N/A self gy N/A N/A attr cudnn N/A N/A condition retry 3 N/A N/A parameterize N/A N/A testing product N/A in_channels out_channels wscale ksize stride pad nobias use_cudnn test_outsize c_contiguous N/A 3 N/A 2 N/A 1 N/A 3 N/A 1 2 N/A 1 N/A True False N/A True False N/A True False N/A True False TestDeconvolution2DCudnnCall N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self in_channels 3 N/A N/A self out_channels 2 N/A N/A kh kw N/A _pair 3 N/A N/A sh sw N/A _pair 1 N/A N/A ph pw N/A _pair 1 N/A N/A self W N/A N/A N/A N/A N/A N/A cuda cupy random normal 0 N/A N/A numpy sqrt N/A 1.0 N/A N/A kh kw N/A self in_channels N/A N/A self in_channels N/A self out_channels kh kw astype N/A numpy float32 N/A N 2 N/A N/A inh inw N/A 4 3 N/A outh N/A N/A conv get_deconv_outsize inh kh sh ph N/A outw N/A N/A conv get_deconv_outsize inw kw sw pw N/A N/A self x N/A N/A N/A N/A N/A N/A cuda cupy random uniform -1 1 N/A N N/A self in_channels inh inw astype N/A numpy float32 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 N N/A self out_channels outh outw 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 W N/A N/A chainer Variable N/A self W N/A N/A N/A F deconvolution_2d x W None stride 1 pad 1 use_cudnn N/A self use_cudnn N/A test_call_cudnn_forward N/A N/A self N/A N/A N/A v2 cupy.cudnn.cudnn.convolutionBackwardData_v2 N/A v3 cupy.cudnn.cudnn.convolutionBackwardData_v3 N/A N/A N/A mock patch v2 func_v2 N/A N/A N/A N/A mock patch v3 func_v3 N/A N/A N/A N/A self forward N/A N/A N/A self assertEqual N/A N/A func_v2 called N/A func_v3 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.convolutionForward 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__