Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareIn AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str attr Str orelse Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Num If NameLoad body Assign NameStore Call NameLoad TupleLoad Num Num orelse If NameLoad body Assign NameStore TupleLoad Num Call NameLoad Num orelse Assign NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Assign NameStore ListComp Call NameLoad comprehension NameStore Call NameLoad Num Assign NameStore ListComp Call NameLoad comprehension NameStore Call NameLoad Num Assert Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assert Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assert Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num For NameStore NameLoad body Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Num Assert CompareGtE Call AttributeLoad NameLoad attr Num Assert CompareLtE Call AttributeLoad NameLoad attr Num Assert CompareLt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareLtELtE Num Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Expr Str Expr Yield TupleLoad NameLoad NameLoad Expr Yield TupleLoad NameLoad NameLoad NameLoad Expr Yield TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Num If NameLoad body Assign NameStore Call NameLoad TupleLoad Num Num orelse If NameLoad body Assign NameStore TupleLoad Num Call NameLoad Num orelse Assign NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Assign NameStore ListComp Call NameLoad comprehension NameStore Call NameLoad Num Assign NameStore ListComp Call NameLoad comprehension NameStore Call NameLoad Num Assert Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assert Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assert Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num For NameStore NameLoad body Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Num Assert CompareLt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareLtELtE Num Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Expr Str Expr Yield TupleLoad NameLoad NameLoad Expr Yield TupleLoad NameLoad NameLoad NameLoad Expr Yield TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Num Assign NameStore BinOpMult Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad keyword Dict NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad keyword Dict NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad keyword Dict NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad keyword Dict NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad keyword Str For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad body Expr Call NameLoad Str Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore Call NameLoad Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr CompareGt NameLoad Num Expr Call NameLoad decorator_list
N/A __future__ print_function N/A numpy N/A theano theano.tensor constant theano.sandbox.cuda.rng_curand CURAND_RandomStreams theano.sandbox.rng_mrg MRG_RandomStreams nose.plugins.skip SkipTest N/A theano.sandbox.cuda cuda_ndarray N/A N/A N/A cuda_ndarray cuda_available False N/A N/A N/A SkipTest Optional package cuda disabled N/A N/A N/A N/A theano config mode N/A FAST_COMPILE DebugMode DEBUG_MODE N/A N/A mode_with_gpu N/A N/A N/A N/A N/A N/A theano compile mode get_mode FAST_RUN including gpu N/A 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 check_uniform_basic N/A N/A shape_as_symbolic dim_as_symbolic N/A False N/A N/A 
    check_uniform_basic(shape_as_symbolic, dim_as_symbolic=False)

    Runs a basic sanity check on the `uniform` method of a
    `CURAND_RandomStreams` object.

    Checks that variates

     * are in the range [0, 1]
     * have a mean in the right neighbourhood (near 0.5)
     * are of the specified shape
     * successive calls produce different arrays of variates

    Parameters
    ----------
    shape_as_symbolic : boolean
        If `True`, est the case that the shape tuple is a symbolic
        variable rather than known at compile-time.

    dim_as_symbolic : boolean
        If `True`, test the case that an element of the shape
        tuple is a Theano symbolic. Irrelevant if `shape_as_symbolic`
        is `True`.
     N/A rng N/A CURAND_RandomStreams 234 N/A shape_as_symbolic N/A N/A shape N/A constant N/A 10 10 N/A N/A dim_as_symbolic N/A N/A shape N/A 10 N/A constant 10 N/A N/A shape N/A 10 10 N/A u0 N/A N/A rng uniform shape N/A u1 N/A N/A rng uniform shape N/A f0 N/A N/A theano function N/A u0 mode mode_with_gpu N/A f1 N/A N/A theano function N/A u1 mode mode_with_gpu N/A v0list N/A N/A f0 N/A i N/A range 3 N/A v1list N/A N/A f1 N/A i N/A range 3 N/A N/A N/A numpy all N/A N/A v0list N/A 0 N/A v0list N/A 1 N/A N/A N/A numpy all N/A N/A v1list N/A 0 N/A v1list N/A 1 N/A N/A N/A numpy all N/A N/A v0list N/A 0 N/A v1list N/A 0 N/A v v0list N/A N/A N/A N/A v shape N/A 10 10 N/A N/A N/A N/A v min 0 N/A N/A N/A N/A v max 1 N/A N/A N/A N/A v min N/A N/A v max N/A N/A 0.25 N/A N/A v mean 0.75 N/A test_uniform_basic N/A N/A N/A N/A N/A 
    Run the tests for `uniform` with different settings for the
    shape tuple passed in.
     N/A N/A N/A check_uniform_basic False N/A N/A N/A check_uniform_basic False True N/A N/A N/A check_uniform_basic True N/A check_normal_basic N/A N/A shape_as_symbolic dim_as_symbolic N/A False N/A N/A 
    check_normal_basic(shape_as_symbolic, dim_as_symbolic=False)

    Runs a basic sanity check on the `normal` method of a
    `CURAND_RandomStreams` object.

    Checks that variates

     * have a mean in the right neighbourhood (near 0)
     * are of the specified shape
     * successive calls produce different arrays of variates

    Parameters
    ----------
    shape_as_symbolic : boolean
        If `True`, est the case that the shape tuple is a symbolic
        variable rather than known at compile-time.

    dim_as_symbolic : boolean
        If `True`, test the case that an element of the shape
        tuple is a Theano symbolic. Irrelevant if `shape_as_symbolic`
        is `True`.
     N/A rng N/A CURAND_RandomStreams 234 N/A shape_as_symbolic N/A N/A shape N/A constant N/A 10 10 N/A N/A dim_as_symbolic N/A N/A shape N/A 10 N/A constant 10 N/A N/A shape N/A 10 10 N/A u0 N/A N/A rng normal shape N/A u1 N/A N/A rng normal shape N/A f0 N/A N/A theano function N/A u0 mode mode_with_gpu N/A f1 N/A N/A theano function N/A u1 mode mode_with_gpu N/A v0list N/A N/A f0 N/A i N/A range 3 N/A v1list N/A N/A f1 N/A i N/A range 3 N/A N/A N/A numpy all N/A N/A v0list N/A 0 N/A v0list N/A 1 N/A N/A N/A numpy all N/A N/A v1list N/A 0 N/A v1list N/A 1 N/A N/A N/A numpy all N/A N/A v0list N/A 0 N/A v1list N/A 0 N/A v v0list N/A N/A N/A N/A v shape N/A 10 10 N/A N/A N/A N/A v min N/A N/A v max N/A N/A -0.5 N/A N/A v mean 0.5 N/A test_normal_basic N/A N/A N/A N/A N/A 
    Run the tests for `normal` with different settings for the
    shape tuple passed in.
     N/A N/A N/A check_normal_basic False N/A N/A N/A check_normal_basic False True N/A N/A N/A check_normal_basic True N/A compare_speed N/A N/A N/A N/A N/A mrg N/A MRG_RandomStreams N/A crn N/A CURAND_RandomStreams 234 N/A N N/A 1000 100 N/A dest N/A N/A theano shared N/A N/A numpy zeros N dtype N/A N/A theano config floatX N/A mrg_u N/A N/A theano function N/A N/A updates N/A dest N/A N/A mrg uniform N/A N profile mrg uniform N/A crn_u N/A N/A theano function N/A N/A updates N/A dest N/A N/A crn uniform N/A N profile crn uniform N/A mrg_n N/A N/A theano function N/A N/A updates N/A dest N/A N/A mrg normal N/A N profile mrg normal N/A crn_n N/A N/A theano function N/A N/A updates N/A dest N/A N/A crn normal N/A N profile crn normal N/A f N/A mrg_u crn_u mrg_n crn_n N/A N/A N/A print DEBUGPRINT N/A N/A print ---------- N/A N/A N/A N/A theano printing debugprint f N/A i N/A range 100 N/A N/A f N/A mrg_u crn_u mrg_n crn_n N/A N/A N/A N/A f fn time_thunks N/A i 0 N/A N/A f N/A