Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad TupleLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num TupleLoad Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body If CompareEq Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Dict Str Str NameLoad TupleLoad Dict Str Str Num TupleLoad Num AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Assign NameStore TupleLoad Num Num Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore BinOpMod Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str ListLoad TupleLoad Num TupleLoad Num Num ListLoad NameLoad Num Num Num Num Num AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Assign NameStore TupleLoad Num Num Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str ListLoad Num ListLoad Num Num Num ListLoad Num Num ListLoad NameLoad Num Num Num Num AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Assign NameStore TupleLoad Num Num Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str ListLoad Num ListLoad Num Num Num ListLoad Num Num ListLoad NameLoad Num Num Num Num ClassDef bases AttributeLoad NameLoad attr body Assign NameStore TupleLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str ListLoad Num Num ListLoad Num ListLoad Num Num ListLoad NameLoad Num Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Dict Str Str Str TupleLoad Num Num Num TupleLoad Num Num Dict Str Str Str TupleLoad TupleLoad Num Num AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMod Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Dict Str Str Str TupleLoad Num Num Num TupleLoad Num Num TupleLoad Num Num Dict Str Str Str TupleLoad Num TupleLoad Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Dict Str Str Str TupleLoad Num Num Num TupleLoad Num Num TupleLoad Num Num Dict Str Str Str TupleLoad Num TupleLoad
N/A N/A unittest N/A numpy cupy core cupy get_array_module cupy testing TestGetSize N/A N/A unittest TestCase N/A test_none N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A core get_size None N/A N/A check_collection N/A N/A self a N/A N/A N/A N/A N/A self assertEqual N/A N/A core get_size a N/A tuple a N/A test_list N/A N/A self N/A N/A N/A N/A N/A self check_collection N/A 1 2 3 N/A test_tuple N/A N/A self N/A N/A N/A N/A N/A self check_collection N/A 1 2 3 N/A test_int N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A core get_size 1 N/A 1 N/A test_float N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A core get_size 1.0 N/A N/A wrap_take N/A N/A array N/A args kwargs N/A N/A N/A N/A get_array_module array numpy N/A N/A N/A kwargs N/A mode wrap N/A N/A N/A array take args kwargs N/A TestNdarrayInit N/A N/A unittest TestCase N/A test_shape N/A N/A self N/A N/A N/A a N/A N/A core ndarray N/A self arg N/A N/A N/A self assertTupleEqual N/A a shape N/A self shape N/A N/A N/A N/A testing parameterize N/A arg shape None N/A N/A arg shape 3 N/A 3 N/A testing gpu TestNdarrayInitRaise N/A N/A unittest TestCase N/A test_unsupported_type N/A N/A self N/A N/A N/A arr N/A N/A numpy ndarray N/A 2 3 dtype object N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A core array arr N/A N/A N/A testing gpu TestNdarrayTake N/A N/A unittest TestCase N/A N/A shape N/A 3 4 5 test_take N/A N/A self xp dtype N/A N/A N/A a N/A N/A testing shaped_arange N/A self shape xp dtype N/A N/A N/A self axis None N/A N/A m N/A a size N/A N/A m N/A N/A a shape N/A N/A self axis N/A i N/A N/A N/A testing shaped_arange N/A self indices_shape xp N/A numpy int32 m N/A N/A wrap_take a i N/A self axis N/A N/A N/A testing for_all_dtypes N/A N/A testing numpy_cupy_array_equal accept_error False N/A N/A N/A testing parameterize N/A N/A testing product N/A indices_shape axis N/A N/A 2 N/A 2 3 N/A None 0 1 2 -1 -2 N/A testing gpu TestNdarrayTakeWithInt N/A N/A unittest TestCase N/A N/A shape N/A 3 4 5 test_take N/A N/A self xp dtype N/A N/A N/A a N/A N/A testing shaped_arange N/A self shape xp dtype N/A N/A wrap_take a N/A self indices N/A self axis N/A N/A N/A testing for_all_dtypes N/A N/A testing numpy_cupy_array_equal accept_error False N/A N/A N/A testing parameterize N/A N/A testing product N/A indices axis N/A 2 N/A 0 1 -1 N/A -1 -2 N/A None 0 1 -1 -2 N/A testing gpu TestNdarrayTakeWithIntWithOutParam N/A N/A unittest TestCase N/A N/A shape N/A 3 4 5 test_take N/A N/A self xp dtype N/A N/A N/A a N/A N/A testing shaped_arange N/A self shape xp dtype N/A r1 N/A wrap_take a N/A self indices N/A self axis N/A r2 N/A N/A xp zeros_like r1 N/A N/A wrap_take a N/A self indices N/A self axis out r2 N/A N/A N/A testing assert_array_equal r1 r2 N/A r2 N/A N/A N/A testing for_all_dtypes N/A N/A testing numpy_cupy_array_equal accept_error False N/A N/A N/A testing parameterize N/A N/A testing product N/A indices axis N/A 2 N/A 0 1 -1 N/A -1 -2 N/A None 0 1 -1 -2 TestScalaNdarrayTakeWithIntWithOutParam N/A N/A unittest TestCase N/A N/A shape N/A test_take N/A N/A self xp dtype N/A N/A N/A a N/A N/A testing shaped_arange N/A self shape xp dtype N/A r1 N/A wrap_take a N/A self indices N/A self axis N/A r2 N/A N/A xp zeros_like r1 N/A N/A wrap_take a N/A self indices N/A self axis out r2 N/A N/A N/A testing assert_array_equal r1 r2 N/A r2 N/A N/A N/A testing for_all_dtypes N/A N/A testing numpy_cupy_array_equal accept_error False N/A N/A N/A testing parameterize N/A N/A testing product N/A indices axis N/A 0 -1 N/A 0 N/A 0 -1 N/A None 0 -1 TestNdarrayTakeErrorAxisOverRun N/A N/A unittest TestCase N/A test_axis_overrun N/A N/A self xp dtype N/A N/A N/A a N/A N/A testing shaped_arange N/A self shape xp dtype N/A N/A wrap_take a N/A self indices axis N/A self axis N/A N/A N/A testing for_all_dtypes N/A N/A testing numpy_cupy_raises N/A N/A N/A testing parameterize N/A shape indices axis N/A 3 4 5 N/A 2 3 N/A shape indices axis N/A N/A 0 2 N/A testing gpu TestNdarrayTakeErrorShapeMismatch N/A N/A unittest TestCase N/A test_shape_mismatch N/A N/A self xp dtype N/A N/A N/A a N/A N/A testing shaped_arange N/A self shape xp dtype N/A i N/A N/A N/A testing shaped_arange N/A self indices xp N/A numpy int32 3 N/A o N/A N/A testing shaped_arange N/A self out_shape xp dtype N/A N/A wrap_take a i out o N/A N/A N/A testing for_all_dtypes N/A N/A testing numpy_cupy_raises N/A N/A N/A testing parameterize N/A shape indices out_shape N/A 3 4 5 N/A 2 3 N/A 2 4 N/A shape indices out_shape N/A 0 N/A 1 TestNdarrayTakeErrorTypeMismatch N/A N/A unittest TestCase N/A test_output_type_mismatch N/A N/A self xp N/A N/A N/A a N/A N/A testing shaped_arange N/A self shape xp N/A numpy int32 N/A i N/A N/A N/A testing shaped_arange N/A self indices xp N/A numpy int32 3 N/A o N/A N/A testing shaped_arange N/A self out_shape xp N/A numpy float32 N/A N/A wrap_take a i out o N/A N/A N/A testing numpy_cupy_raises N/A N/A N/A testing parameterize N/A shape indices out_shape N/A 3 4 5 N/A 2 3 N/A 2 3 N/A shape indices out_shape N/A 0 N/A