Module Import alias identifier ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpRShift Call NameLoad Num Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad Call NameLoad Num attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpRShift Call NameLoad Num Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad Call NameLoad Num attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpRShift Call NameLoad Num Call NameLoad Num Assign NameStore BinOpRShift NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpRShift Call NameLoad Num Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpRShift Call NameLoad Num Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpRShift BinOpRShift Call NameLoad Num Call NameLoad Num BinOpRShift Call NameLoad Num Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad BinOpRShift Call NameLoad Num AttributeLoad NameLoad attr attr attr ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad BinOpRShift Call NameLoad Num AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad BinOpRShift Call NameLoad Num AttributeLoad NameLoad attr attr attr Call AttributeLoad BinOpRShift Call NameLoad Num AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A numpy np base BaseTest deepx.nn Vector Full Freeze deepx.node ShapeException TestGraph N/A BaseTest N/A test_graph_basic N/A N/A self N/A N/A N/A N/A N/A N/A np random seed 0 N/A net1 N/A N/A Vector 10 N/A Full 10 N/A N/A N/A N/A np random seed 0 N/A net2 N/A N/A N/A Vector 10 chain N/A Full 10 N/A N/A N/A self assertEqual net1 net2 N/A test_graph_basic2 N/A N/A self N/A N/A N/A N/A N/A N/A np random seed 0 N/A net1 N/A N/A Vector 10 N/A Full 10 N/A N/A N/A N/A np random seed 0 N/A net2 N/A N/A N/A Vector 10 chain N/A Full 20 N/A N/A N/A self assertNotEqual net1 net2 N/A test_graph_parameters N/A N/A self N/A N/A N/A N/A N/A N/A np random seed 0 N/A net1 N/A N/A Vector 10 N/A Full 10 N/A net2 N/A net1 N/A Full 10 N/A N/A N/A self assertEqual N/A N/A net1 get_state N/A N/A N/A net2 left get_state N/A test_freeze N/A N/A self N/A N/A N/A net1 N/A N/A Vector 10 N/A Full 10 N/A N/A N/A self assertEqual N/A N/A N/A Freeze net1 get_state N/A N/A net1 get_state N/A N/A N/A self assertEqual N/A N/A N/A Freeze net1 get_parameters N/A N/A test_freeze_parameters N/A N/A self N/A N/A N/A N/A N/A N/A np random seed 0 N/A net1 N/A N/A Vector 10 N/A Full 10 N/A N/A N/A self assertEqual N/A N/A N/A N/A net1 freeze get_state N/A N/A net1 get_state N/A test_freeze_parameters2 N/A N/A self N/A N/A N/A N/A N/A N/A np random seed 0 N/A gan N/A N/A N/A Vector 10 N/A Full 20 N/A N/A Full 10 N/A Full 2 N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A gan left freeze get_state N/A N/A N/A gan left get_state N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A gan right freeze get_state N/A N/A N/A gan right get_state N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A gan right freeze get_parameters N/A N/A N/A N/A self assertNotEqual N/A N/A N/A gan right get_parameters N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A N/A Vector 20 N/A gan right freeze get_parameters N/A N/A N/A N/A self assertNotEqual N/A N/A N/A N/A Vector 20 N/A gan right get_parameters N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A N/A Vector 20 N/A gan right freeze get_state N/A N/A N/A N/A Vector 20 N/A gan right get_state N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A gan left freeze get_parameters N/A N/A N/A N/A self assertNotEqual N/A N/A N/A gan left get_parameters N/A N/A test_shape_inference N/A N/A self N/A N/A N/A part1 N/A Full 100 N/A part2 N/A Full 20 N/A N/A N/A self assertEqual N/A part1 shape N/A None 100 N/A N/A N/A self assertEqual N/A part2 shape N/A None 20 N/A N/A N/A part1 chain part2 N/A N/A N/A self assertEqual N/A part1 shape N/A None 100 N/A N/A N/A self assertEqual N/A part2 shape N/A 100 20 N/A test_shape_inference2 N/A N/A self N/A N/A N/A part1 N/A Full 10 100 N/A part2 N/A Full 100 20 N/A N/A N/A self assertEqual N/A part1 shape N/A 10 100 N/A N/A N/A self assertEqual N/A part2 shape N/A 100 20 N/A N/A N/A part1 chain part2 N/A N/A N/A self assertEqual N/A part1 shape N/A 10 100 N/A N/A N/A self assertEqual N/A part2 shape N/A 100 20 N/A test_bad_shape N/A N/A self N/A N/A N/A part1 N/A Full 10 100 N/A part2 N/A Full 90 20 N/A N/A N/A self assertRaises ShapeException N/A N/A N/A N/A part1 chain part2 N/A test_bad_shape2 N/A N/A self N/A N/A N/A part1 N/A Full 100 N/A part2 N/A Full 20 N/A N/A N/A self assertEqual N/A part1 shape N/A None 100 N/A N/A N/A self assertEqual N/A part2 shape N/A None 20 N/A N/A N/A part1 chain part2 N/A N/A N/A self assertEqual N/A part1 shape N/A None 100 N/A N/A N/A self assertEqual N/A part2 shape N/A 100 20 N/A part3 N/A Full 100 N/A N/A N/A part2 chain part3 N/A part4 N/A Full 90 N/A N/A N/A self assertRaises ShapeException N/A N/A N/A N/A part4 chain part3 N/A test_shape_elementwise N/A N/A self N/A N/A N/A part1 N/A Full N/A part2 N/A Full 20 N/A N/A N/A self assertEqual N/A part1 shape N/A None None N/A N/A N/A self assertEqual N/A part2 shape N/A None 20 N/A N/A N/A part2 chain part1 N/A N/A N/A self assertEqual N/A part1 shape N/A 20 20 N/A N/A N/A self assertEqual N/A part2 shape N/A None 20 N/A test_shape_elementwise2 N/A N/A self N/A N/A N/A part1 N/A Full 20 N/A part2 N/A Full N/A part3 N/A Full 30 40 N/A N/A N/A self assertEqual N/A part1 shape N/A None 20 N/A N/A N/A self assertEqual N/A part2 shape N/A None None N/A N/A N/A self assertEqual N/A part3 shape N/A 30 40 N/A part4 N/A N/A part1 chain part2 N/A N/A N/A self assertEqual N/A part1 shape N/A None 20 N/A N/A N/A self assertEqual N/A part2 shape N/A 20 20 N/A N/A N/A self assertEqual N/A part4 shape N/A None 20 N/A N/A N/A self assertRaises ShapeException N/A N/A N/A N/A part4 chain part3 N/A N/A