Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias If NameLoad body ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Index Num Str Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore TupleLoad Num Num Assign NameStore ListLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assert Call AttributeLoad NameLoad attr NameLoad NameLoad Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore ListLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad Num keyword Str For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword TupleLoad Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad Num keyword Str For NameStore Call NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword TupleLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad Num keyword Str For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword Str keyword TupleLoad Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad Num keyword Str For NameStore Call NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword Str keyword TupleLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Str orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Return Call NameLoad decorator_list Expr Call NameLoad TupleLoad Num BinOpPow Num Num Expr Call NameLoad NameLoad NameLoad TupleLoad Num BinOpAdd BinOpPow Num Num Num decorator_list FunctionDef arguments args defaults body Expr Str ImportFrom alias identifier ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad Num keyword Str For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword Str keyword TupleLoad Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str ImportFrom alias identifier ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad Num keyword Str For NameStore Call NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword Str keyword TupleLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad Num NameLoad Num Num body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore Num Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpPow BinOpSub NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore BinOpDiv Num BinOpAdd Num NameLoad Assign NameStore BinOpAdd BinOpMult NameLoad NameLoad BinOpMult BinOpSub Num NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult NameLoad Call AttributeLoad NameLoad attr BinOpPow BinOpSub NameLoad NameLoad Num BinOpMult BinOpSub Num NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assert CompareGt NameLoad Num Assert CompareLt NameLoad Num If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpSub NameLoad NameLoad Assert Call AttributeLoad NameLoad attr CompareLt NameLoad BinOpMult NameLoad BinOpAdd Num Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareLt Call NameLoad BinOpSub NameLoad NameLoad BinOpMult NameLoad BinOpAdd Num Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assert CompareLt Call NameLoad BinOpSub NameLoad NameLoad BinOpMult NameLoad BinOpAdd Num Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body If BoolOpOr CompareIn NameLoad ListLoad Str Str Str BoolOpAnd CompareEq NameLoad Str CompareIn AttributeLoad NameLoad attr ListLoad Str body Assign NameStore TupleLoad Num Num Assign NameStore Num orelse Assign NameStore TupleLoad Num Num Assign NameStore Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameStore ListLoad TupleLoad NameLoad NameLoad ListLoad ListLoad TupleLoad AttributeLoad NameLoad attr NameLoad ListLoad NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr TupleLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num NameLoad ListLoad NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr TupleLoad TupleLoad TupleLoad ListLoad ListLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assert Call NameLoad ListComp Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr comprehension NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad NameLoad If CompareLt Call AttributeLoad NameLoad attr NameLoad Num body Assign NameStore BinOpMult NameLoad Num orelse Assign NameStore NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad If BoolOpAnd CompareNotEq NameLoad Str NameLoad body Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword NameLoad keyword NameLoad Assert Call NameLoad ListComp Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr comprehension NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body If BoolOpOr CompareIn NameLoad ListLoad Str Str Str BoolOpAnd CompareEq NameLoad Str CompareIn AttributeLoad NameLoad attr ListLoad Str body Assign NameStore TupleLoad Num Num Assign NameStore Num Assign NameStore Num orelse Assign NameStore TupleLoad Num Num Assign NameStore Call NameLoad Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr For NameStore ListLoad Num Num body For TupleStore NameStore NameStore NameStore NameStore ListLoad TupleLoad NameLoad NameLoad ListLoad ListLoad TupleLoad AttributeLoad NameLoad attr NameLoad ListLoad NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr TupleLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num NameLoad ListLoad NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr TupleLoad TupleLoad TupleLoad ListLoad ListLoad body Expr Yield TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad If CompareLt Call AttributeLoad NameLoad attr NameLoad Num body Assign NameStore BinOpMult NameLoad Num orelse Assign NameStore NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd CompareNotEq NameLoad Str NameLoad body Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Num If BoolOpOr CompareIn NameLoad ListLoad Str Str Str BoolOpAnd CompareEq NameLoad Str CompareIn AttributeLoad NameLoad attr ListLoad Str body Assign NameStore TupleLoad Num Num Assign NameStore Num orelse Assign NameStore TupleLoad Num Num Assign NameStore Num Assign NameStore TupleLoad SubscriptLoad NameLoad Index Num BinOpSub SubscriptLoad NameLoad Index Num Num Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore ListLoad TupleLoad NameLoad NameLoad ListLoad ListLoad Num NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr NameLoad ListLoad NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Num NameLoad NameLoad TupleLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num NameLoad ListLoad NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Num NameLoad NameLoad TupleLoad NameLoad NameLoad ListLoad ListLoad Num NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr NameLoad ListLoad NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Num NameLoad NameLoad TupleLoad NameLoad NameLoad ListLoad ListLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Str attr NameLoad BinOpDiv BinOpMult Num NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad TupleLoad TupleLoad ListLoad ListLoad Num NameLoad Num TupleLoad TupleLoad Num TupleLoad Num ListLoad ListLoad Num NameLoad Num TupleLoad TupleLoad Num TupleLoad Num ListLoad ListLoad Num NameLoad Num TupleLoad TupleLoad Num TupleLoad Num ListLoad ListLoad Num NameLoad Num body Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad If CompareLt Call AttributeLoad NameLoad attr NameLoad Num body Assign NameStore BinOpMult NameLoad Num orelse Assign NameStore NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareNotEq NameLoad Str NameLoad body Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword Str keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assert Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Num body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad Assert Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr NameLoad keyword Num NameLoad AugAssignAdd NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad AugAssignDiv NameStore BinOpMult NameLoad NameLoad Assert CompareLt Call AttributeLoad NameLoad attr Call NameLoad BinOpSub NameLoad NameLoad NameLoad Expr Call NameLoad Str Call AttributeLoad NameLoad attr SubscriptLoad Call NameLoad Slice Num Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad BinOpSub NameLoad NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str BinOpMult NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Str BinOpDiv BinOpMult NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore Str If BoolOpOr CompareIn NameLoad ListLoad Str Str Str BoolOpAnd CompareEq NameLoad Str CompareIn AttributeLoad NameLoad attr ListLoad Str body Assign NameStore TupleLoad Num Num orelse Assign NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults BinOpDiv NameLoad Call AttributeLoad NameLoad attr NameLoad Num NameLoad Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword BinOpMult Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword Num keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareNotEq NameLoad Str NameLoad body Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword BinOpMult Num Num Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword Num keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore Str If BoolOpOr CompareIn NameLoad ListLoad Str Str Str BoolOpAnd CompareEq NameLoad Str CompareIn AttributeLoad NameLoad attr ListLoad Str body Assign NameStore TupleLoad Num Num orelse Assign NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults BinOpDiv NameLoad Call AttributeLoad NameLoad attr NameLoad Num NameLoad Assign NameStore Call NameLoad Num keyword NameLoad For TupleStore NameStore NameStore Call NameLoad ListLoad Num Num Num Num ListLoad Num Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword BinOpMult Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareNotEq NameLoad Str NameLoad body Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword BinOpMult Num Num Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num keyword NameLoad For NameStore ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Num ListLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assert CompareIsNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases body FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad Num decorator_list decorator_list Assign NameStore Call NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str FunctionDef arguments args NameParam defaults body Return BinOpAdd NameLoad BinOpMult Call AttributeLoad NameLoad attr TupleLoad Num keyword Str NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Num keyword Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad TupleLoad Num Num attr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Num attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad TupleLoad Num Num attr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Num attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Assign SubscriptStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num NameLoad Assign SubscriptStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num NameLoad Assign SubscriptStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num NameLoad Assign SubscriptStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num NameLoad Assign SubscriptStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num NameLoad Assign SubscriptStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assert Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Num Assert Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Str orelse Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore ListLoad TupleLoad Num NameLoad TupleLoad NameLoad NameLoad TupleLoad Num NameLoad body Assign NameStore Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr TupleLoad Num Num keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr TupleLoad Num Num keyword Num keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword Str keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad ListLoad Num Assign NameStore Call NameLoad ListLoad Num Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad ListLoad Num Assign NameStore Call NameLoad ListLoad Num Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad
N/A __future__ print_function N/A copy N/A os N/A sys N/A time N/A unittest nose.plugins.skip SkipTest nose.tools assert_raises N/A numpy six.moves xrange N/A theano theano tensor config theano.sandbox rng_mrg theano.sandbox.rng_mrg MRG_RandomStreams theano.sandbox.cuda cuda_available theano.tests unittest_tools utt theano.tests.unittest_tools attr N/A cuda_available N/A theano.sandbox.cuda float32_shared_constructor N/A mode N/A config mode N/A mode_with_gpu N/A N/A N/A N/A N/A N/A theano compile mode get_default_mode including gpu N/A N/A N/A utt seed_rng N/A java_samples N/A N/A numpy loadtxt N/A N/A N/A os path join N/A N/A N/A N/A os path split N/A theano __file__ N/A 0 sandbox samples_MRG31k3p_12_7_5.txt test_deterministic N/A N/A N/A N/A N/A seed N/A N/A utt fetch_seed N/A sample_size N/A 10 20 N/A test_use_cuda N/A False N/A cuda_available N/A N/A N/A N/A test_use_cuda append True N/A use_cuda test_use_cuda N/A N/A R N/A MRG_RandomStreams seed seed use_cuda use_cuda N/A u N/A N/A R uniform size sample_size N/A f N/A N/A theano function N/A u N/A fsample1 N/A f N/A fsample2 N/A f N/A N/A N/A N/A numpy allclose fsample1 fsample2 N/A R2 N/A MRG_RandomStreams seed seed use_cuda use_cuda N/A u2 N/A N/A R2 uniform size sample_size N/A g N/A N/A theano function N/A u2 N/A gsample1 N/A g N/A gsample2 N/A g N/A N/A N/A numpy allclose fsample1 gsample1 N/A N/A N/A numpy allclose fsample2 gsample2 N/A test_consistency_randomstreams N/A N/A N/A N/A N/A 
    Verify that the random numbers generated by MRG_RandomStreams
    are the same as the reference (Java) implementation by L'Ecuyer et al.

     N/A seed 12345 N/A n_samples 5 N/A n_streams 12 N/A n_substreams 7 N/A test_use_cuda N/A False N/A cuda_available N/A N/A N/A N/A test_use_cuda append True N/A use_cuda test_use_cuda N/A N/A samples N/A N/A rng N/A MRG_RandomStreams seed seed use_cuda use_cuda N/A i N/A range n_streams N/A N/A stream_samples N/A N/A u N/A N/A rng uniform size N/A n_substreams nstreams n_substreams N/A f N/A N/A theano function N/A u N/A j N/A range n_samples N/A N/A s N/A f N/A N/A N/A stream_samples append s N/A stream_samples N/A N/A numpy array stream_samples N/A stream_samples N/A N/A N/A stream_samples T flatten N/A N/A N/A samples append stream_samples N/A samples N/A N/A N/A N/A numpy array samples flatten N/A N/A N/A numpy allclose samples java_samples N/A test_consistency_cpu_serial N/A N/A N/A N/A N/A 
    Verify that the random numbers generated by mrg_uniform, serially,
    are the same as the reference (Java) implementation by L'Ecuyer et al.

     N/A seed 12345 N/A n_samples 5 N/A n_streams 12 N/A n_substreams 7 N/A samples N/A N/A curr_rstate N/A N/A numpy array N/A N/A seed 6 dtype int32 N/A i N/A range n_streams N/A N/A stream_rstate N/A N/A curr_rstate copy N/A j N/A range n_substreams N/A N/A rstate N/A N/A theano shared N/A N/A numpy array N/A N/A N/A stream_rstate copy dtype int32 N/A N/A new_rstate sample N/A N/A N/A rng_mrg mrg_uniform new rstate ndim None dtype N/A config floatX size N/A 1 N/A N/A sample rstate rstate N/A N/A sample update N/A rstate new_rstate N/A N/A rstate default_update new_rstate N/A f N/A N/A theano function N/A sample N/A k N/A range n_samples N/A N/A s N/A f N/A N/A N/A samples append s N/A stream_rstate N/A N/A rng_mrg ff_2p72 stream_rstate N/A curr_rstate N/A N/A rng_mrg ff_2p134 curr_rstate N/A samples N/A N/A N/A N/A numpy array samples flatten N/A N/A N/A numpy allclose samples java_samples N/A test_consistency_cpu_parallel N/A N/A N/A N/A N/A 
    Verify that the random numbers generated by mrg_uniform, in parallel,
    are the same as the reference (Java) implementation by L'Ecuyer et al.

     N/A seed 12345 N/A n_samples 5 N/A n_streams 12 N/A n_substreams 7 N/A samples N/A N/A curr_rstate N/A N/A numpy array N/A N/A seed 6 dtype int32 N/A i N/A range n_streams N/A N/A stream_samples N/A N/A rstate N/A N/A N/A curr_rstate copy N/A j N/A range 1 n_substreams N/A N/A N/A N/A rstate append N/A N/A rng_mrg ff_2p72 N/A rstate N/A -1 N/A rstate N/A N/A numpy asarray rstate N/A rstate N/A N/A theano shared rstate N/A N/A new_rstate sample N/A N/A N/A rng_mrg mrg_uniform new rstate ndim None dtype N/A config floatX size N/A n_substreams N/A N/A sample rstate rstate N/A N/A sample update N/A rstate new_rstate N/A N/A rstate default_update new_rstate N/A f N/A N/A theano function N/A sample N/A k N/A range n_samples N/A N/A s N/A f N/A N/A N/A stream_samples append s N/A N/A N/A samples append N/A N/A N/A N/A N/A numpy array stream_samples T flatten N/A curr_rstate N/A N/A rng_mrg ff_2p134 curr_rstate N/A samples N/A N/A N/A N/A numpy array samples flatten N/A N/A N/A numpy allclose samples java_samples N/A test_consistency_GPU_serial N/A N/A N/A N/A N/A 
    Verify that the random numbers generated by GPU_mrg_uniform, serially,
    are the same as the reference (Java) implementation by L'Ecuyer et al.

     N/A N/A cuda_available N/A N/A N/A SkipTest Optional package cuda not available N/A N/A N/A config mode FAST_COMPILE N/A N/A mode FAST_RUN N/A N/A mode N/A config mode N/A seed 12345 N/A n_samples 5 N/A n_streams 12 N/A n_substreams 7 N/A samples N/A N/A curr_rstate N/A N/A numpy array N/A N/A seed 6 dtype int32 N/A i N/A range n_streams N/A N/A stream_rstate N/A N/A curr_rstate copy N/A j N/A range n_substreams N/A N/A substream_rstate N/A N/A numpy array N/A N/A stream_rstate copy dtype int32 N/A tmp_float_buf N/A N/A numpy frombuffer N/A substream_rstate data dtype float32 N/A rstate N/A float32_shared_constructor tmp_float_buf N/A N/A new_rstate sample N/A N/A N/A rng_mrg GPU_mrg_uniform new rstate ndim None dtype float32 size N/A 1 N/A N/A rstate default_update new_rstate N/A N/A sample rstate rstate N/A N/A sample update N/A rstate new_rstate N/A cpu_sample N/A N/A tensor as_tensor_variable sample N/A f N/A N/A theano function N/A cpu_sample mode mode N/A k N/A range n_samples N/A N/A s N/A f N/A N/A N/A samples append s N/A stream_rstate N/A N/A rng_mrg ff_2p72 stream_rstate N/A curr_rstate N/A N/A rng_mrg ff_2p134 curr_rstate N/A samples N/A N/A N/A N/A numpy array samples flatten N/A N/A N/A numpy allclose samples java_samples N/A test_consistency_GPU_parallel N/A N/A N/A N/A N/A 
    Verify that the random numbers generated by GPU_mrg_uniform, in
    parallel, are the same as the reference (Java) implementation by
    L'Ecuyer et al.

     N/A N/A cuda_available N/A N/A N/A SkipTest Optional package cuda not available N/A N/A N/A config mode FAST_COMPILE N/A N/A mode FAST_RUN N/A N/A mode N/A config mode N/A seed 12345 N/A n_samples 5 N/A n_streams 12 N/A n_substreams 7 N/A samples N/A N/A curr_rstate N/A N/A numpy array N/A N/A seed 6 dtype int32 N/A i N/A range n_streams N/A N/A stream_samples N/A N/A rstate N/A N/A N/A curr_rstate copy N/A j N/A range 1 n_substreams N/A N/A N/A N/A rstate append N/A N/A rng_mrg ff_2p72 N/A rstate N/A -1 N/A rstate N/A N/A N/A N/A numpy asarray rstate flatten N/A tmp_float_buf N/A N/A numpy frombuffer N/A rstate data dtype float32 N/A rstate N/A float32_shared_constructor tmp_float_buf N/A N/A new_rstate sample N/A N/A N/A rng_mrg GPU_mrg_uniform new rstate ndim None dtype float32 size N/A n_substreams N/A N/A rstate default_update new_rstate N/A N/A sample rstate rstate N/A N/A sample update N/A rstate new_rstate N/A cpu_sample N/A N/A tensor as_tensor_variable sample N/A f N/A N/A theano function N/A cpu_sample mode mode N/A k N/A range n_samples N/A N/A s N/A f N/A N/A N/A stream_samples append s N/A N/A N/A samples append N/A N/A N/A N/A N/A numpy array stream_samples T flatten N/A curr_rstate N/A N/A rng_mrg ff_2p134 curr_rstate N/A samples N/A N/A N/A N/A numpy array samples flatten N/A N/A N/A numpy allclose samples java_samples N/A test_GPU_nstreams_limit N/A N/A N/A N/A N/A 
    Verify that a ValueError is raised when n_streams
    is greater than 2**20 on GPU. This is the value of
    (NUM_VECTOR_OP_THREADS_PER_BLOCK * NUM_VECTOR_OP_BLOCKS).

     N/A N/A cuda_available N/A N/A N/A SkipTest Optional package cuda not available N/A seed 12345 N/A R N/A MRG_RandomStreams seed seed use_cuda True eval_uniform N/A N/A size nstreams N/A N/A N/A N/A N/A N/A theano config mode FAST_COMPILE N/A N/A mode FAST_RUN N/A N/A mode N/A N/A copy copy N/A N/A N/A theano compile get_default_mode N/A N/A mode check_py_code False N/A out N/A N/A R uniform size size nstreams nstreams dtype float32 N/A f N/A N/A theano function N/A out mode mode N/A N/A f N/A N/A N/A eval_uniform N/A 10 N/A 2 20 N/A N/A assert_raises ValueError eval_uniform N/A 10 N/A N/A 2 20 1 N/A test_consistency_GPUA_serial N/A N/A N/A N/A N/A 
    Verify that the random numbers generated by GPUA_mrg_uniform, serially,
    are the same as the reference (Java) implementation by L'Ecuyer et al.

     theano.sandbox.gpuarray.tests.test_basic_ops mode_with_gpu mode theano.sandbox.gpuarray.type gpuarray_shared_constructor N/A seed 12345 N/A n_samples 5 N/A n_streams 12 N/A n_substreams 7 N/A samples N/A N/A curr_rstate N/A N/A numpy array N/A N/A seed 6 dtype int32 N/A i N/A range n_streams N/A N/A stream_rstate N/A N/A curr_rstate copy N/A j N/A range n_substreams N/A N/A substream_rstate N/A N/A numpy array N/A N/A N/A stream_rstate copy dtype int32 N/A rstate N/A gpuarray_shared_constructor substream_rstate N/A N/A new_rstate sample N/A N/A N/A rng_mrg GPUA_mrg_uniform new rstate ndim None dtype float32 size N/A 1 N/A N/A rstate default_update new_rstate N/A N/A sample rstate rstate N/A N/A sample update N/A rstate new_rstate N/A cpu_sample N/A N/A tensor as_tensor_variable sample N/A f N/A N/A theano function N/A cpu_sample mode mode N/A k N/A range n_samples N/A N/A s N/A f N/A N/A N/A samples append s N/A stream_rstate N/A N/A rng_mrg ff_2p72 stream_rstate N/A curr_rstate N/A N/A rng_mrg ff_2p134 curr_rstate N/A samples N/A N/A N/A N/A numpy array samples flatten N/A N/A N/A numpy allclose samples java_samples N/A test_consistency_GPUA_parallel N/A N/A N/A N/A N/A 
    Verify that the random numbers generated by GPUA_mrg_uniform, in
    parallel, are the same as the reference (Java) implementation by
    L'Ecuyer et al.

     theano.sandbox.gpuarray.tests.test_basic_ops mode_with_gpu mode theano.sandbox.gpuarray.type gpuarray_shared_constructor N/A seed 12345 N/A n_samples 5 N/A n_streams 12 N/A n_substreams 7 N/A samples N/A N/A curr_rstate N/A N/A numpy array N/A N/A seed 6 dtype int32 N/A i N/A range n_streams N/A N/A stream_samples N/A N/A rstate N/A N/A N/A curr_rstate copy N/A j N/A range 1 n_substreams N/A N/A N/A N/A rstate append N/A N/A rng_mrg ff_2p72 N/A rstate N/A -1 N/A rstate N/A N/A numpy asarray rstate N/A rstate N/A gpuarray_shared_constructor rstate N/A N/A new_rstate sample N/A N/A N/A rng_mrg GPUA_mrg_uniform new rstate ndim None dtype float32 size N/A n_substreams N/A N/A rstate default_update new_rstate N/A N/A sample rstate rstate N/A N/A sample update N/A rstate new_rstate N/A cpu_sample N/A N/A tensor as_tensor_variable sample N/A f N/A N/A theano function N/A cpu_sample mode mode N/A k N/A range n_samples N/A N/A s N/A f N/A N/A N/A stream_samples append s N/A N/A N/A samples append N/A N/A N/A N/A N/A numpy array stream_samples T flatten N/A curr_rstate N/A N/A rng_mrg ff_2p134 curr_rstate N/A samples N/A N/A N/A N/A numpy array samples flatten N/A N/A N/A numpy allclose samples java_samples N/A basictest N/A N/A f steps sample_size prefix allow_01 inputs target_avg target_std mean_rtol std_tol N/A False None 0.5 None 0.01 0.01 N/A N/A N/A inputs None N/A N/A inputs N/A N/A dt 0.0 N/A avg_var 0.0 N/A i N/A xrange steps N/A N/A t0 N/A N/A time time N/A ival N/A f inputs N/A N/A N/A ival shape sample_size N/A dt N/A N/A N/A time time t0 N/A ival N/A N/A numpy asarray ival N/A N/A i 0 N/A N/A mean N/A N/A numpy array ival copy True N/A avg_var N/A N/A numpy mean N/A N/A ival target_avg 2 N/A min_ N/A N/A ival min N/A max_ N/A N/A ival max N/A N/A alpha N/A 1.0 N/A 1 i N/A mean N/A N/A alpha ival N/A N/A 1 alpha mean N/A avg_var N/A N/A alpha N/A N/A numpy mean N/A N/A ival target_avg 2 N/A N/A 1 alpha avg_var N/A min_ N/A min min_ N/A N/A ival min N/A max_ N/A max max_ N/A N/A ival max N/A N/A allow_01 N/A N/A N/A min_ 0 N/A N/A max_ 1 N/A N/A hasattr target_avg shape N/A N/A diff N/A N/A numpy mean N/A abs N/A mean target_avg N/A N/A N/A numpy all N/A diff N/A mean_rtol N/A 1 N/A abs target_avg N/A bad mean? %s %s N/A mean target_avg N/A N/A mean N/A N/A numpy mean mean N/A N/A N/A abs N/A mean target_avg N/A mean_rtol N/A 1 N/A abs target_avg N/A bad mean? %f %f N/A mean target_avg N/A std N/A N/A numpy sqrt avg_var N/A N/A target_std None N/A N/A N/A N/A abs N/A std target_std N/A std_tol N/A 1 N/A abs target_std N/A bad std? %f %f %f N/A std target_std std_tol N/A test_uniform N/A N/A N/A N/A N/A N/A N/A mode N/A DEBUG_MODE DebugMode FAST_COMPILE N/A N/A mode Mode N/A N/A config linker N/A py N/A N/A sample_size N/A 10 100 N/A steps 50 N/A N/A sample_size N/A 500 50 N/A steps N/A int 1000.0 N/A x N/A N/A tensor matrix N/A N/A size const_size var_input input N/A N/A sample_size sample_size N/A N/A N/A N/A x shape sample_size N/A x N/A N/A N/A numpy zeros sample_size dtype N/A config floatX N/A N/A N/A N/A x shape N/A 0 N/A sample_size N/A 1 sample_size N/A x N/A N/A N/A numpy zeros sample_size dtype N/A config floatX N/A N/A N/A N/A N/A N/A N/A x N/A N/A tensor matrix N/A R N/A MRG_RandomStreams 234 use_cuda False N/A u N/A N/A R uniform size size nstreams N/A N/A rng_mrg guess_n_streams size warn False N/A f N/A N/A theano function var_input u mode mode N/A N/A any N/A N/A isinstance N/A node op N/A N/A N/A theano sandbox rng_mrg mrg_uniform N/A node N/A N/A N/A N/A f maker fgraph toposort N/A cpu_out N/A f input N/A N/A N/A N/A numpy prod const_size 10 N/A N/A steps_ N/A steps 100 N/A N/A steps_ steps N/A N/A basictest f steps_ const_size prefix mrg cpu inputs input N/A N/A N/A mode FAST_COMPILE cuda_available N/A N/A R N/A MRG_RandomStreams 234 use_cuda True N/A u N/A N/A R uniform size size dtype float32 nstreams N/A N/A rng_mrg guess_n_streams size warn False N/A N/A N/A u dtype float32 N/A f N/A N/A theano function var_input N/A N/A theano Out N/A N/A N/A N/A N/A theano sandbox cuda basic_ops gpu_from_host u borrow True mode mode_with_gpu N/A N/A any N/A N/A isinstance N/A node op N/A N/A N/A theano sandbox rng_mrg GPU_mrg_uniform N/A node N/A N/A N/A N/A f maker fgraph toposort N/A gpu_out N/A N/A numpy asarray N/A f input N/A N/A basictest f steps_ const_size prefix mrg  gpu inputs input N/A N/A N/A N/A numpy testing assert_array_almost_equal cpu_out gpu_out decimal 6 N/A RR N/A N/A N/A N/A theano tensor shared_randomstreams RandomStreams 234 N/A uu N/A N/A RR uniform size size N/A ff N/A N/A theano function var_input uu mode mode N/A N/A basictest ff steps_ const_size prefix numpy allow_01 True inputs input N/A test_binomial N/A N/A N/A N/A N/A N/A N/A mode N/A DEBUG_MODE DebugMode FAST_COMPILE N/A N/A mode Mode N/A N/A config linker N/A py N/A N/A sample_size N/A 10 50 N/A steps 50 N/A rtol 0.02 N/A N/A sample_size N/A 500 50 N/A steps N/A int 1000.0 N/A rtol 0.01 N/A x N/A N/A tensor matrix N/A mean N/A 0.1 0.5 N/A N/A N/A size const_size var_input input N/A N/A sample_size sample_size N/A N/A N/A N/A x shape sample_size N/A x N/A N/A N/A numpy zeros sample_size dtype N/A config floatX N/A N/A N/A N/A x shape N/A 0 N/A sample_size N/A 1 sample_size N/A x N/A N/A N/A numpy zeros sample_size dtype N/A config floatX N/A N/A N/A N/A N/A N/A N/A N/A N/A t_binomial mean size const_size var_input input steps rtol N/A N/A attr slow t_binomial N/A N/A mean size const_size var_input input steps rtol N/A N/A N/A R N/A MRG_RandomStreams 234 use_cuda False N/A u N/A N/A R binomial size size p mean N/A f N/A N/A theano function var_input u mode mode N/A out N/A f input N/A N/A N/A N/A numpy prod const_size 10 N/A N/A steps_ N/A steps 100 N/A N/A steps_ steps N/A N/A basictest f steps_ const_size prefix mrg  cpu inputs input allow_01 True target_avg mean mean_rtol rtol N/A N/A N/A mode FAST_COMPILE cuda_available N/A N/A R N/A MRG_RandomStreams 234 use_cuda True N/A u N/A N/A R binomial size size p mean dtype float32 N/A N/A N/A u dtype float32 N/A f N/A N/A theano function var_input N/A N/A theano Out N/A N/A N/A N/A N/A theano sandbox cuda basic_ops gpu_from_host u borrow True mode mode_with_gpu N/A gpu_out N/A N/A numpy asarray N/A f input N/A N/A basictest f steps_ const_size prefix mrg  gpu inputs input allow_01 True target_avg mean mean_rtol rtol N/A N/A N/A N/A numpy testing assert_array_almost_equal out gpu_out decimal 6 N/A RR N/A N/A N/A N/A theano tensor shared_randomstreams RandomStreams 234 N/A uu N/A N/A RR binomial size size p mean N/A ff N/A N/A theano function var_input uu mode mode N/A N/A basictest ff steps_ const_size prefix numpy allow_01 True inputs input target_avg mean mean_rtol rtol N/A test_normal0 N/A N/A N/A N/A N/A steps 50 N/A std 2.0 N/A N/A N/A mode N/A DEBUG_MODE DebugMode FAST_COMPILE N/A N/A mode Mode N/A N/A config linker N/A py N/A N/A sample_size N/A 25 30 N/A default_rtol 0.02 N/A N/A sample_size N/A 999 50 N/A default_rtol 0.01 N/A sample_size_odd N/A N/A sample_size N/A 0 N/A N/A sample_size N/A 1 1 N/A x N/A N/A tensor matrix N/A N/A size const_size var_input input avg rtol std_tol N/A N/A sample_size sample_size N/A N/A -5.0 default_rtol default_rtol N/A N/A x shape sample_size N/A x N/A N/A N/A numpy zeros sample_size dtype N/A config floatX -5.0 default_rtol default_rtol N/A N/A N/A N/A x shape N/A 0 N/A sample_size N/A 1 sample_size N/A x N/A N/A N/A numpy zeros sample_size dtype N/A config floatX -5.0 default_rtol default_rtol N/A sample_size_odd sample_size_odd N/A N/A -5.0 default_rtol default_rtol N/A N/A x shape sample_size_odd N/A x N/A N/A N/A numpy zeros sample_size_odd dtype N/A config floatX -5.0 default_rtol default_rtol N/A sample_size sample_size N/A N/A N/A N/A N/A N/A numpy arange N/A N/A numpy prod sample_size dtype float32 reshape sample_size N/A N/A 10.0 std N/A N/A numpy sqrt steps default_rtol N/A N/A N/A N/A N/A -5.0 default_rtol 0.02 N/A N/A 1 N/A 1 N/A N/A -5.0 default_rtol 0.02 N/A N/A 2 N/A 2 N/A N/A -5.0 default_rtol 0.02 N/A N/A 3 N/A 3 N/A N/A -5.0 default_rtol 0.02 N/A N/A R N/A MRG_RandomStreams 234 use_cuda False N/A n N/A N/A R normal size size avg avg std std nstreams N/A N/A rng_mrg guess_n_streams size warn False N/A f N/A N/A theano function var_input n mode mode N/A out N/A f input N/A N/A N/A N/A numpy prod const_size 10 N/A N/A steps_ N/A steps 50 N/A N/A steps_ steps N/A N/A basictest f steps_ const_size target_avg avg target_std std prefix mrg  allow_01 True inputs input mean_rtol rtol std_tol std_tol N/A N/A N/A N/A sys stdout flush N/A N/A N/A mode FAST_COMPILE cuda_available N/A N/A R N/A MRG_RandomStreams 234 use_cuda True N/A n N/A N/A R normal size size avg avg std std dtype float32 nstreams N/A N/A rng_mrg guess_n_streams size warn False N/A N/A N/A n dtype float32 N/A f N/A N/A theano function var_input N/A N/A theano Out N/A N/A N/A N/A N/A theano sandbox cuda basic_ops gpu_from_host n borrow True mode mode_with_gpu N/A N/A N/A N/A sys stdout flush N/A gpu_out N/A N/A numpy asarray N/A f input N/A N/A N/A N/A sys stdout flush N/A N/A basictest f steps_ const_size target_avg avg target_std std prefix gpu mrg  allow_01 True inputs input mean_rtol rtol std_tol std_tol N/A N/A N/A numpy allclose out gpu_out rtol 5e-06 atol 5e-06 N/A RR N/A N/A N/A N/A theano tensor shared_randomstreams RandomStreams 234 N/A nn N/A N/A RR normal size size avg avg std std N/A ff N/A N/A theano function var_input nn N/A N/A basictest ff steps_ const_size target_avg avg target_std std prefix numpy  allow_01 True inputs input mean_rtol rtol N/A N/A attr slow basic_multinomialtest N/A N/A f steps sample_size target_pvals n_samples prefix mean_rtol N/A 0.04 N/A N/A dt 0.0 N/A avg_pvals N/A N/A numpy zeros N/A target_pvals shape dtype N/A config floatX N/A i N/A xrange steps N/A N/A t0 N/A N/A time time N/A ival N/A f N/A N/A N/A ival shape sample_size N/A N/A N/A numpy all N/A N/A N/A numpy sum ival axis 1 n_samples N/A dt N/A N/A N/A time time t0 N/A avg_pvals ival N/A avg_pvals N/A steps n_samples N/A N/A N/A N/A numpy mean N/A abs N/A avg_pvals target_pvals mean_rtol N/A N/A print random?[:10]
 N/A N/A numpy asarray N/A N/A f N/A 10 N/A N/A print prefix mean avg_pvals N/A N/A print N/A N/A numpy mean N/A abs N/A avg_pvals target_pvals N/A N/A print prefix time dt N/A N/A print prefix elements N/A steps N/A N/A numpy prod N/A target_pvals shape N/A N/A print prefix samples/sec N/A N/A steps N/A N/A numpy prod N/A target_pvals shape dt N/A test_multinomial N/A N/A N/A N/A N/A steps 100 N/A mode_ mode N/A N/A mode FAST_COMPILE N/A N/A mode_ FAST_RUN N/A N/A N/A mode N/A DEBUG_MODE DebugMode FAST_COMPILE N/A N/A mode Mode N/A N/A config linker N/A py N/A N/A sample_size N/A 49 5 N/A N/A sample_size N/A 450 6 N/A mode_ N/A N/A N/A N/A theano compile mode get_mode mode_ N/A pvals N/A N/A numpy asarray N/A N/A N/A numpy random uniform size sample_size N/A pvals N/A N/A numpy apply_along_axis N/A N/A N/A row N/A N/A row N/A N/A numpy sum row 1 pvals N/A R N/A MRG_RandomStreams 234 use_cuda False N/A m N/A N/A R multinomial pvals pvals dtype N/A config floatX nstreams N/A 30 256 N/A f N/A N/A theano function N/A m mode mode_ N/A out N/A f N/A N/A basic_multinomialtest f steps sample_size pvals n_samples 1 prefix mrg  N/A N/A N/A N/A sys stdout flush N/A N/A N/A mode FAST_COMPILE cuda_available N/A N/A R N/A MRG_RandomStreams 234 use_cuda True N/A pvals N/A N/A numpy asarray pvals dtype float32 N/A n N/A N/A R multinomial pvals pvals dtype float32 nstreams N/A 30 256 N/A N/A N/A n dtype float32 N/A f N/A N/A theano function N/A N/A N/A N/A N/A N/A theano sandbox cuda basic_ops gpu_from_host n mode N/A N/A mode_ including gpu N/A gpu_out N/A f N/A N/A N/A N/A sys stdout flush N/A N/A basic_multinomialtest f steps sample_size pvals n_samples 1 prefix gpu mrg  N/A N/A N/A N/A numpy testing assert_array_almost_equal out gpu_out decimal 6 N/A test_multinomial_n_samples N/A N/A N/A N/A N/A mode_ mode N/A N/A mode FAST_COMPILE N/A N/A mode_ FAST_RUN N/A N/A N/A mode N/A DEBUG_MODE DebugMode FAST_COMPILE N/A N/A mode Mode N/A N/A config linker N/A py N/A N/A sample_size N/A 49 5 N/A N/A sample_size N/A 450 6 N/A mode_ N/A N/A N/A N/A theano compile mode get_mode mode_ N/A pvals N/A N/A numpy asarray N/A N/A N/A numpy random uniform size sample_size N/A pvals N/A N/A numpy apply_along_axis N/A N/A N/A row N/A N/A row N/A N/A numpy sum row 1 pvals N/A R N/A MRG_RandomStreams 234 use_cuda False N/A N/A n_samples steps N/A zip N/A 5 10 100 1000 N/A 20 10 1 1 N/A N/A m N/A N/A R multinomial pvals pvals n n_samples dtype N/A config floatX nstreams N/A 30 256 N/A f N/A N/A theano function N/A m mode mode_ N/A N/A basic_multinomialtest f steps sample_size pvals n_samples prefix mrg  N/A N/A N/A N/A sys stdout flush N/A N/A N/A mode FAST_COMPILE cuda_available N/A N/A R N/A MRG_RandomStreams 234 use_cuda True N/A pvals N/A N/A numpy asarray pvals dtype float32 N/A n N/A N/A R multinomial pvals pvals n n_samples dtype float32 nstreams N/A 30 256 N/A N/A N/A n dtype float32 N/A f N/A N/A theano function N/A N/A N/A N/A N/A N/A theano sandbox cuda basic_ops gpu_from_host n mode N/A N/A mode_ including gpu N/A N/A N/A N/A sys stdout flush N/A N/A basic_multinomialtest f steps sample_size pvals n_samples prefix gpu mrg  N/A T_MRG N/A N/A unittest TestCase N/A test_bad_size N/A N/A self N/A N/A N/A R N/A MRG_RandomStreams 234 use_cuda False N/A size N/A N/A 0 100 N/A -1 100 N/A 1 0 N/A N/A N/A N/A self assertRaises ValueError N/A R uniform size N/A N/A N/A self assertRaises ValueError N/A R binomial size N/A N/A N/A self assertRaises ValueError N/A R multinomial size 1 N/A N/A N/A N/A self assertRaises ValueError N/A R normal size N/A N/A test_multiple_rng_aliasing N/A N/A N/A N/A N/A 
    Test that when we have multiple random number generators, we do not alias
    the state_updates member. `state_updates` can be useful when attempting to
    copy the (random) state between two similar theano graphs. The test is
    meant to detect a previous bug where state_updates was initialized as a
    class-attribute, instead of the __init__ function.

     N/A rng1 N/A MRG_RandomStreams 1234 N/A rng2 N/A MRG_RandomStreams 2392 N/A N/A N/A rng1 state_updates N/A rng2 state_updates N/A test_random_state_transfer N/A N/A N/A N/A N/A 
    Test that random state can be transferred from one theano graph to another.

     Graph N/A N/A __init__ N/A N/A self seed N/A 123 N/A N/A N/A self rng N/A MRG_RandomStreams seed N/A N/A self y N/A N/A N/A self rng uniform size N/A 1 N/A N/A N/A g1 N/A Graph seed 123 N/A f1 N/A N/A theano function N/A N/A g1 y N/A g2 N/A Graph seed 987 N/A f2 N/A N/A theano function N/A N/A g2 y N/A N/A N/A g2 rng rstate N/A N/A g1 rng rstate N/A N/A su1 su2 N/A zip N/A N/A g1 rng state_updates N/A N/A g2 rng state_updates N/A N/A N/A N/A N/A su2 N/A 0 set_value N/A N/A N/A su1 N/A 0 get_value N/A N/A N/A N/A numpy testing assert_array_almost_equal N/A f1 N/A f2 decimal 6 N/A test_gradient_scan N/A N/A N/A N/A N/A theano_rng N/A MRG_RandomStreams 10 N/A w N/A N/A theano shared N/A N/A numpy ones 1 dtype float32 one_step N/A N/A x N/A N/A N/A N/A x N/A N/A N/A theano_rng uniform N/A 1 dtype float32 w N/A N/A x N/A N/A tensor vector dtype float32 N/A N/A values updates N/A N/A theano scan one_step outputs_info x n_steps 10 N/A gw N/A N/A theano grad N/A N/A tensor sum N/A values N/A -1 w N/A f N/A N/A theano function N/A x gw N/A N/A f N/A N/A numpy arange 1 dtype float32 N/A test_multMatVect N/A N/A N/A N/A N/A A1 N/A N/A tensor lmatrix A1 N/A s1 N/A N/A tensor ivector s1 N/A m1 N/A N/A tensor iscalar m1 N/A A2 N/A N/A tensor lmatrix A2 N/A s2 N/A N/A tensor ivector s2 N/A m2 N/A N/A tensor iscalar m2 N/A g0 N/A N/A N/A rng_mrg DotModulo A1 s1 m1 A2 s2 m2 N/A f0 N/A N/A theano function N/A A1 s1 m1 A2 s2 m2 g0 N/A i32max N/A N/A N/A numpy iinfo N/A numpy int32 max N/A A1 N/A N/A N/A N/A N/A numpy random randint 0 i32max N/A 3 3 astype int64 N/A s1 N/A N/A N/A N/A N/A numpy random randint 0 i32max 3 astype int32 N/A m1 N/A N/A numpy asarray N/A N/A N/A numpy random randint i32max dtype int32 N/A A2 N/A N/A N/A N/A N/A numpy random randint 0 i32max N/A 3 3 astype int64 N/A s2 N/A N/A N/A N/A N/A numpy random randint 0 i32max 3 astype int32 N/A m2 N/A N/A numpy asarray N/A N/A N/A numpy random randint i32max dtype int32 N/A N/A N/A N/A N/A f0 input_storage N/A 0 storage N/A 0 A1 N/A N/A N/A N/A N/A f0 input_storage N/A 1 storage N/A 0 s1 N/A N/A N/A N/A N/A f0 input_storage N/A 2 storage N/A 0 m1 N/A N/A N/A N/A N/A f0 input_storage N/A 3 storage N/A 0 A2 N/A N/A N/A N/A N/A f0 input_storage N/A 4 storage N/A 0 s2 N/A N/A N/A N/A N/A f0 input_storage N/A 5 storage N/A 0 m2 N/A r_a1 N/A N/A rng_mrg matVecModM A1 s1 m1 N/A r_a2 N/A N/A rng_mrg matVecModM A2 s2 m2 N/A N/A N/A f0 fn N/A r_b N/A N/A N/A f0 output_storage N/A 0 value N/A N/A N/A numpy allclose r_a1 N/A r_b N/A 3 N/A N/A N/A numpy allclose r_a2 N/A r_b N/A 3 N/A test_seed_fn N/A N/A N/A N/A N/A test_use_cuda N/A False N/A cuda_available N/A N/A N/A N/A test_use_cuda append True N/A idx N/A N/A tensor ivector N/A use_cuda test_use_cuda N/A N/A N/A N/A N/A config mode FAST_COMPILE use_cuda N/A N/A mode FAST_RUN N/A N/A mode N/A config mode N/A N/A new_seed same N/A N/A 234 True N/A None True N/A 23 False N/A N/A random N/A MRG_RandomStreams 234 use_cuda use_cuda N/A fn1 N/A N/A theano function N/A N/A N/A random uniform N/A 2 2 dtype float32 mode mode N/A fn2 N/A N/A theano function N/A N/A N/A random uniform N/A 3 3 nstreams 2 dtype float32 mode mode N/A fn3 N/A N/A theano function N/A idx N/A N/A random uniform idx nstreams 3 ndim 1 dtype float32 mode mode N/A fn1_val0 N/A fn1 N/A fn1_val1 N/A fn1 N/A N/A N/A N/A numpy allclose fn1_val0 fn1_val1 N/A fn2_val0 N/A fn2 N/A fn2_val1 N/A fn2 N/A N/A N/A N/A numpy allclose fn2_val0 fn2_val1 N/A fn3_val0 N/A fn3 N/A 4 N/A fn3_val1 N/A fn3 N/A 4 N/A N/A N/A N/A numpy allclose fn3_val0 fn3_val1 N/A N/A N/A fn1_val0 size 4 N/A N/A N/A fn2_val0 size 9 N/A N/A N/A random seed new_seed N/A fn1_val2 N/A fn1 N/A fn1_val3 N/A fn1 N/A fn2_val2 N/A fn2 N/A fn2_val3 N/A fn2 N/A fn3_val2 N/A fn3 N/A 4 N/A fn3_val3 N/A fn3 N/A 4 N/A N/A N/A N/A numpy allclose fn1_val0 fn1_val2 same N/A N/A N/A N/A numpy allclose fn1_val1 fn1_val3 same N/A N/A N/A N/A numpy allclose fn2_val0 fn2_val2 same N/A N/A N/A N/A numpy allclose fn2_val1 fn2_val3 same N/A N/A N/A N/A numpy allclose fn3_val0 fn3_val2 same N/A N/A N/A N/A numpy allclose fn3_val1 fn3_val3 same N/A N/A N/A __name__ __main__ N/A N/A rng N/A MRG_RandomStreams N/A N/A N/A numpy random randint 2147462579 N/A N/A print N/A theano __file__ N/A pvals N/A N/A N/A theano tensor fmatrix N/A i N/A range 10 N/A N/A t0 N/A N/A time time N/A multinomial N/A N/A rng multinomial pvals pvals N/A N/A print N/A N/A N/A time time t0