Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad orelse Assign SubscriptStore NameLoad Index Num NameLoad orelse If Call NameLoad NameLoad NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call NameLoad Call NameLoad NameLoad NameLoad NameLoad orelse Expr Call NameLoad NameLoad NameLoad NameLoad orelse Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore IfExp CompareEq Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Num TupleLoad Num Num Num Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str ListLoad Str Str ListLoad Str Dict Str Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr ListLoad Str Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Assign NameStore ListLoad TupleLoad Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str Str ListLoad Str ListLoad Str Dict Str Str Str Str Str Num Num Num Num NameLoad ListLoad Dict Str Str Str Num Num Call NameLoad Call NameLoad Num Dict Str Call NameLoad Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Assign NameStore Call NameLoad BinOpMult NameLoad Num BinOpMult BinOpAdd NameLoad Num Num Assign NameStore Call NameLoad BinOpMult NameLoad Num BinOpMult BinOpAdd NameLoad Num Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult NameLoad Num BinOpMult BinOpAdd NameLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str ListLoad Dict Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str ListLoad Str ListLoad Str Dict Str Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Num keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Assign NameStore ListLoad TupleLoad Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str Str ListLoad Str ListLoad Str Dict Str Str NameLoad Num ListLoad Dict Str Str Dict Str ListLoad Num Num Call NameLoad Call NameLoad Num Dict Str Str Dict Str ListLoad Num Call NameLoad Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr ListLoad Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Assign NameStore ListLoad TupleLoad Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str Str ListLoad Str ListLoad Str Dict Str Str NameLoad Num ListLoad Dict Str Str Dict Str ListLoad Num Num Num Num Call NameLoad Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str ListLoad Dict Str Dict Str ListLoad Num Num Num Num Num FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Dict Str Num FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str ListLoad Str ListLoad Str Dict Str Str Str Str Str Num Num Num Num Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Num keyword Num keyword BinOpDiv Num Num keyword Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Dict Str Num FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str ListLoad Str ListLoad Str Dict Str Str Str Str Str Str Str Num Num Num Num Num Num Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad Num Num keyword TupleLoad Num Num keyword TupleLoad Num Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str ListLoad Str ListLoad Str Dict Str Str Str Str Num Num Num Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Num keyword Num keyword Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Dict Str Num FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str ListLoad Str ListLoad Str Dict Str Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str ListLoad Str ListLoad Str Dict Str Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num Num Num Assign NameStore ListLoad TupleLoad Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str ListLoad Str ListLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Dict Str Num FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str ListLoad Str ListLoad Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Num handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Num If CompareGtE NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad
N/A N/A os N/A pkg_resources N/A tempfile N/A unittest N/A mock N/A numpy N/A six N/A chainer chainer links chainer.links caffe chainer testing N/A N/A N/A N/A links caffe caffe_function available N/A chainer.links.caffe.caffe_function caffe_pb _iter_init N/A N/A param data N/A N/A N/A N/A isinstance data list N/A N/A d data N/A N/A N/A hasattr param append N/A N/A N/A N/A param append d N/A N/A N/A N/A param add N/A N/A isinstance d N/A list dict N/A N/A N/A _iter_init N/A param N/A -1 d N/A N/A N/A param N/A -1 d N/A N/A N/A isinstance data dict N/A N/A N/A k d N/A N/A data items N/A N/A N/A isinstance d N/A list dict N/A N/A N/A _iter_init N/A getattr param k d N/A N/A N/A setattr param k d N/A N/A N/A setattr param data N/A _make_param N/A N/A data N/A N/A N/A param N/A N/A caffe_pb NetParameter N/A N/A _iter_init param data N/A param N/A TestCaffeFunctionBase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A param N/A _make_param N/A self data N/A N/A N/A tempfile NamedTemporaryFile delete False f N/A N/A N/A self temp_file_path N/A f name N/A N/A N/A f write N/A N/A param SerializeToString N/A tearDown N/A N/A self N/A N/A N/A N/A N/A os remove N/A self temp_file_path N/A init_func N/A N/A self N/A N/A N/A N/A self func N/A N/A caffe CaffeFunction N/A self temp_file_path N/A N/A N/A N/A unittest skipUnless N/A N/A N/A links caffe caffe_function available protobuf>=3.0.0 is required for py3 TestCaffeFunctionBaseMock N/A TestCaffeFunctionBase N/A setUp N/A N/A self N/A N/A N/A outs N/A N/A shape N/A self out_shapes N/A N/A out_data N/A N/A N/A N/A N/A numpy random uniform -1 1 shape astype N/A numpy float32 N/A N/A N/A outs append N/A N/A chainer Variable out_data N/A N/A self outputs N/A tuple outs N/A ret_value N/A N/A N/A len outs 1 N/A outs N/A 0 N/A tuple outs N/A m N/A N/A mock MagicMock name N/A self func_name return_value ret_value N/A N/A self patch N/A N/A mock patch N/A self func_name m N/A N/A self mock N/A N/A N/A self patch start N/A N/A N/A N/A super TestCaffeFunctionBaseMock self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestCaffeFunctionBaseMock self tearDown N/A N/A N/A N/A self patch stop N/A call N/A N/A self inputs outputs N/A N/A N/A invars N/A N/A shape N/A self in_shapes N/A N/A data N/A N/A N/A N/A N/A numpy random uniform -1 1 shape astype N/A numpy float32 N/A N/A N/A invars append N/A N/A chainer Variable data N/A N/A self inputs invars N/A out N/A N/A self func inputs N/A dict N/A zip inputs invars outputs outputs train False N/A N/A N/A self assertEqual N/A len out N/A len N/A self outputs N/A N/A actual expect N/A zip out N/A self outputs N/A N/A N/A N/A self assertIs actual expect N/A N/A TestConcat N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.functions.concat N/A in_shapes N/A N/A 3 2 3 N/A 3 2 3 N/A out_shapes N/A N/A 3 2 3 N/A data N/A layer N/A N/A name type bottom top concat_param l1 Concat N/A x y N/A z N/A axis 2 test_concat N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 1 N/A N/A N/A self call N/A x y N/A z N/A N/A N/A N/A self mock assert_called_once_with N/A N/A N/A self inputs N/A 0 N/A N/A self inputs N/A 1 axis 2 N/A N/A TestConvolution N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.links.Convolution2D.__call__ N/A in_shapes N/A N/A 2 3 N/A out_shapes N/A N/A 2 3 N/A data N/A layer N/A N/A name type bottom top convolution_param blobs l1 Convolution N/A x N/A y N/A kernel_size stride pad group bias_term 2 3 4 3 True N/A N/A num channels data 6 4 N/A list N/A range 96 N/A data N/A list N/A range 6 test_convolution N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 1 N/A f N/A N/A self func l1 N/A N/A N/A self assertIsInstance f N/A links Convolution2D N/A i N/A range 3 N/A N/A in_slice N/A slice N/A i 4 N/A N/A i 1 4 N/A out_slice N/A slice N/A i 2 N/A N/A i 1 2 N/A w N/A N/A N/A f W data N/A N/A out_slice in_slice N/A N/A N/A N/A numpy testing assert_array_equal N/A N/A w flatten N/A range N/A i 32 N/A N/A i 1 32 N/A N/A N/A N/A numpy testing assert_array_equal N/A N/A f b data N/A range 6 N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 N/A N/A TestData N/A TestCaffeFunctionBase N/A N/A data N/A layer N/A N/A name type l1 Data test_data N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 0 N/A N/A TestDropout N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.functions.dropout N/A in_shapes N/A N/A 3 2 3 N/A out_shapes N/A N/A 3 2 3 N/A data N/A layer N/A N/A name type bottom top dropout_param l1 Dropout N/A x N/A y N/A dropout_ratio 0.25 test_dropout N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 1 N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 ratio 0.25 train False N/A N/A TestInnerProduct N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.links.Linear.__call__ N/A in_shapes N/A N/A 2 3 N/A out_shapes N/A N/A 2 3 N/A data N/A layer N/A N/A name type bottom top inner_product_param blobs l1 InnerProduct N/A x N/A y N/A bias_term axis True 1 N/A N/A shape data N/A dim N/A 2 3 N/A list N/A range 6 N/A shape data N/A dim N/A 2 N/A list N/A range 2 test_linear N/A N/A self N/A N/A N/A N/A N/A self init_func N/A f N/A N/A self func l1 N/A N/A N/A self assertIsInstance f N/A links Linear N/A N/A N/A N/A numpy testing assert_array_equal N/A N/A f W data N/A N/A numpy array N/A N/A 0 1 2 N/A 3 4 5 dtype N/A numpy float32 N/A N/A N/A N/A numpy testing assert_array_equal N/A N/A f b data N/A N/A numpy array N/A 0 1 dtype N/A numpy float32 N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 N/A N/A TestInnerProductDim4 N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.links.Linear.__call__ N/A in_shapes N/A N/A 2 3 N/A out_shapes N/A N/A 2 3 N/A data N/A layer N/A N/A name type bottom top inner_product_param blobs l1 InnerProduct N/A x N/A y N/A bias_term axis False 1 N/A N/A shape data N/A dim N/A 4 5 2 3 N/A list N/A range 6 test_linear N/A N/A self N/A N/A N/A N/A N/A self init_func N/A f N/A N/A self func l1 N/A N/A N/A self assertIsInstance f N/A links Linear N/A N/A N/A N/A numpy testing assert_array_equal N/A N/A f W data N/A N/A numpy array N/A N/A 0 1 2 N/A 3 4 5 dtype N/A numpy float32 N/A N/A N/A self assertIsNone N/A f b N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 N/A N/A TestInnerProductInvalidDim N/A TestCaffeFunctionBase N/A N/A data N/A layer N/A N/A name type blobs l1 InnerProduct N/A N/A shape N/A dim N/A 2 3 4 5 6 test_linear N/A N/A self N/A N/A N/A N/A N/A self assertRaises RuntimeError N/A N/A N/A N/A self init_func N/A N/A TestInnerProductNonDefaultAxis N/A TestCaffeFunctionBase N/A N/A data N/A layer N/A N/A name type inner_product_param l1 InnerProduct N/A axis 0 test_linear N/A N/A self N/A N/A N/A N/A N/A self assertRaises RuntimeError N/A N/A N/A N/A self init_func N/A N/A TestLRN N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.functions.local_response_normalization N/A in_shapes N/A N/A 3 2 3 N/A out_shapes N/A N/A 3 2 3 N/A data N/A layer N/A N/A name type bottom top lrn_param l1 LRN N/A x N/A y N/A local_size alpha beta norm_region k 4 0.5 0.25 0 0.5 test_lrn N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 1 N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 n 4 k 0.5 alpha N/A 0.5 4 beta 0.25 N/A N/A TestLRNWithinChannel N/A TestCaffeFunctionBase N/A N/A data N/A layer N/A N/A name type lrn_param l1 LRN N/A norm_region 1 test_lrn N/A N/A self N/A N/A N/A N/A N/A self assertRaises RuntimeError N/A N/A N/A N/A self init_func N/A N/A TestMaxPooling N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.functions.max_pooling_2d N/A in_shapes N/A N/A 3 2 3 N/A out_shapes N/A N/A 3 2 3 N/A data N/A layer N/A N/A name type bottom top pooling_param l1 Pooling N/A x N/A y N/A pool kernel_h kernel_w stride_h stride_w pad_h pad_w 0 2 3 4 5 6 7 test_max_pooling N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 1 N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 N/A 2 3 stride N/A 4 5 pad N/A 6 7 N/A N/A TestAveragePooling N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.functions.average_pooling_2d N/A in_shapes N/A N/A 3 2 3 N/A out_shapes N/A N/A 3 2 3 N/A data N/A layer N/A N/A name type bottom top pooling_param l1 Pooling N/A x N/A y N/A pool kernel_size stride pad 1 2 4 6 test_max_pooling N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 1 N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 2 stride 4 pad 6 N/A N/A TestStochasticPooling N/A TestCaffeFunctionBase N/A N/A data N/A layer N/A N/A name type pooling_param l1 Pooling N/A pool 2 test_stochastic_pooling N/A N/A self N/A N/A N/A N/A N/A self assertRaises RuntimeError N/A N/A N/A N/A self init_func N/A N/A TestReLU N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.functions.relu N/A in_shapes N/A N/A 3 2 3 N/A out_shapes N/A N/A 3 2 3 N/A data N/A layer N/A N/A name type bottom top relu_param l1 ReLU N/A x N/A y N/A negative_slope 0 test_lrn N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 1 N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 N/A N/A TestLeakyReLU N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.functions.leaky_relu N/A in_shapes N/A N/A 3 2 3 N/A out_shapes N/A N/A 3 2 3 N/A data N/A layer N/A N/A name type bottom top relu_param l1 ReLU N/A x N/A y N/A negative_slope 0.5 test_lrn N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 1 N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 slope 0.5 N/A N/A TestSoftmaxWithLoss N/A TestCaffeFunctionBaseMock N/A N/A func_name chainer.functions.softmax_cross_entropy N/A in_shapes N/A N/A 3 2 3 N/A out_shapes N/A N/A N/A data N/A layer N/A N/A name type bottom top l1 SoftmaxWithLoss N/A x N/A y test_softmax_with_loss N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A len N/A N/A self func layers 1 N/A N/A N/A self call N/A x N/A y N/A N/A N/A N/A self mock assert_called_once_with N/A N/A self inputs N/A 0 N/A N/A TestSoftmaxWithLossInvalidAxis N/A TestCaffeFunctionBase N/A N/A data N/A layer N/A N/A name type softmax_param l1 SoftmaxWithLoss N/A axis 0 test_softmax_with_loss_invalid_axis N/A N/A self N/A N/A N/A N/A N/A self assertRaises RuntimeError N/A N/A N/A N/A self init_func N/A N/A TestSplit N/A TestCaffeFunctionBase N/A N/A data N/A layer N/A N/A name type bottom top l1 Split N/A x N/A y z test_split N/A N/A self N/A N/A N/A N/A N/A self init_func N/A N/A N/A self assertEqual N/A N/A self func split_map N/A y z x x N/A N/A TestCaffeFunctionAvailable N/A N/A unittest TestCase N/A test_py2_available N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A links caffe caffe_function available N/A N/A N/A unittest skipUnless N/A six PY2 Only for Py2 test_py3_available N/A N/A self N/A N/A N/A ws N/A N/A pkg_resources WorkingSet N/A N/A N/A N/A N/A ws require protobuf<3.0.0 N/A ver 2 N/A N/A N/A N/A pkg_resources VersionConflict N/A N/A ver 3 N/A N/A ver 3 N/A N/A N/A N/A self assertTrue N/A N/A N/A links caffe caffe_function available N/A N/A N/A N/A self assertFalse N/A N/A N/A links caffe caffe_function available N/A N/A N/A self assertRaises RuntimeError N/A N/A N/A N/A caffe CaffeFunction N/A N/A N/A unittest skipUnless N/A six PY3 Only for Py3 N/A N/A N/A N/A testing run_module __name__ __file__