Module ImportFrom alias Assign NameStore Str ImportFrom alias Expr Call NameLoad Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body If CompareNotEq Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareEq NameLoad NameLoad Assert CompareEq NameLoad NameLoad Assert BoolOpAnd CompareLtE NameLoad NameLoad CompareGtE NameLoad Num If CompareGt NameLoad Num body Assert CompareNotEq NameLoad NameLoad Assign TupleStore NameStore NameStore NameLoad If CompareEq BinOpMod BinOpSub NameLoad NameLoad NameLoad Num body Assign NameStore Num orelse Assign NameStore BinOpSub BinOpAdd BinOpMult BinOpAdd BinOpDiv BinOpSub NameLoad NameLoad NameLoad Num NameLoad NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub BinOpAdd NameLoad NameLoad NameLoad NameLoad If CompareEq BinOpMod BinOpSub NameLoad NameLoad NameLoad Num body Assign NameStore Num orelse Assign NameStore BinOpSub BinOpAdd BinOpMult BinOpAdd BinOpDiv BinOpSub NameLoad NameLoad NameLoad Num NameLoad NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub BinOpAdd NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad keyword Str orelse Assign NameStore BinOpSub BinOpAdd NameLoad NameLoad Num Assign NameStore BinOpSub BinOpAdd NameLoad NameLoad Num Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore BinOpMult BinOpMult NameLoad NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Index NameLoad Slice Assign NameStore Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr attr NameLoad NameLoad NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad ExtSlice Slice Slice BinOpMult NameLoad NameLoad BinOpAdd BinOpMult NameLoad NameLoad NameLoad Slice BinOpMult NameLoad NameLoad BinOpAdd BinOpMult NameLoad NameLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad Slice NameLoad Slice Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num Num Assign NameStore ListLoad ListLoad TupleLoad Num Num Num Num TupleLoad Num Num Num Num ListLoad TupleLoad Num Num Num Num TupleLoad Num Num Num Num ListLoad TupleLoad Num Num Num Num TupleLoad Num Num Num Num ListLoad TupleLoad Num Num Num Num TupleLoad Num Num Num Num ListLoad TupleLoad Num Num Num Num TupleLoad Num Num Num Num For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num attr Str Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad keyword Str Expr Call NameLoad BinOpMod Str BinOpAdd NameLoad Num For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign NameStore BinOpAdd NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call Call NameLoad keyword NameLoad NameLoad NameLoad Call NameLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad ListLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str If CompareGt Call AttributeLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad attr Num body Assert CompareEq Call NameLoad NameLoad Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Assert NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Call AttributeLoad NameLoad attr Expr Call NameLoad Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ print_function N/A __authors__ Heng Luo pylearn2.testing.skip skip_if_no_gpu N/A N/A skip_if_no_gpu N/A numpy np theano.compat.six.moves xrange theano shared theano.tensor grad constant pylearn2.sandbox.cuda_convnet.filter_acts FilterActs pylearn2.sandbox.cuda_convnet.filter_acts ImageActs theano.sandbox.cuda gpu_from_host theano.sandbox.cuda host_from_gpu theano.sandbox.rng_mrg MRG_RandomStreams theano.tensor.nnet.conv conv2d theano.tensor as_tensor_variable theano function theano tensor T N/A warnings theano.sandbox cuda theano.sandbox.cuda.var float32_shared_constructor test_filter_acts_strided FilterActs_python ImageActs_python N/A N/A filters hidacts stride img_shape N/A 1 None N/A N/A N/A N/A int stride stride N/A N/A N/A TypeError stride must be an int stride N/A stride N/A int stride N/A N/A num_filters h_rows h_cols batch_size N/A hidacts shape N/A N/A channels filter_rows filter_cols _num_filters N/A filters shape N/A N/A filter_cols filter_cols N/A N/A num_filters _num_filters N/A N/A N/A stride filter_rows N/A stride 1 N/A N/A stride 1 N/A N/A N/A img_shape None N/A N/A rows cols img_shape N/A N/A N/A N/A rows filter_rows stride 0 N/A N/A stride_padding_rows 0 N/A N/A stride_padding_rows N/A N/A N/A N/A N/A N/A rows filter_rows stride 1 stride filter_rows rows N/A idx_rows N/A N/A N/A rows stride_padding_rows filter_rows stride N/A N/A N/A N/A cols filter_cols stride 0 N/A N/A stride_padding_cols 0 N/A N/A stride_padding_cols N/A N/A N/A N/A N/A N/A cols filter_cols stride 1 stride filter_cols cols N/A idx_cols N/A N/A N/A cols stride_padding_cols filter_cols stride N/A new_rows N/A rows stride_padding_rows N/A new_cols N/A cols stride_padding_cols N/A idx_rows N/A N/A new_rows filter_rows stride N/A idx_cols N/A N/A new_cols filter_cols stride N/A images N/A N/A np zeros N/A channels new_rows new_cols batch_size dtype float32 N/A N/A rows N/A N/A h_rows filter_rows 1 N/A cols N/A N/A h_cols filter_cols 1 N/A img_shape N/A channels rows cols batch_size N/A images N/A N/A np zeros img_shape dtype float32 N/A n_dim_filter N/A N/A channels filter_rows filter_cols N/A vector_filters N/A N/A N/A filters reshape n_dim_filter num_filters T N/A idx_h_rows N/A xrange h_rows N/A N/A idx_h_cols N/A xrange h_cols N/A N/A rc_hidacts N/A hidacts N/A N/A N/A idx_h_rows N/A idx_h_cols N/A N/A rc_image N/A N/A N/A N/A N/A np dot N/A rc_hidacts T vector_filters T reshape channels filter_rows filter_cols batch_size N/A N/A images N/A N/A N/A N/A idx_h_rows stride N/A N/A idx_h_rows stride filter_rows N/A N/A idx_h_cols stride N/A N/A idx_h_cols stride filter_cols N/A rc_image N/A rval N/A images N/A N/A N/A rows N/A cols N/A N/A rval N/A test_image_acts_strided N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState N/A 2012 10 9 N/A shape_list N/A N/A N/A 1 7 8 5 N/A 1 2 2 16 N/A N/A 3 7 8 5 N/A 3 3 3 16 N/A N/A 16 11 11 4 N/A 16 4 4 16 N/A N/A 3 20 20 3 N/A 3 5 5 16 N/A N/A 3 21 21 3 N/A 3 6 6 16 N/A test_idx N/A xrange N/A len shape_list N/A N/A images N/A N/A N/A N/A rng uniform -1.0 1.0 N/A N/A shape_list N/A test_idx N/A 0 astype float32 N/A filters N/A N/A N/A N/A rng uniform -1.0 1.0 N/A N/A shape_list N/A test_idx N/A 1 astype float32 N/A gpu_images N/A float32_shared_constructor images name images N/A gpu_filters N/A float32_shared_constructor filters name filters N/A N/A print N/A test case %d... N/A test_idx 1 N/A ii N/A xrange N/A N/A filters shape N/A 1 N/A N/A stride N/A ii 1 N/A output_python N/A FilterActs_python images filters stride N/A hidacts N/A N/A N/A N/A rng uniform -1.0 1.0 N/A output_python shape astype float32 N/A gpu_hidacts N/A float32_shared_constructor hidacts name hidacts N/A Img_output_python N/A ImageActs_python filters hidacts stride N/A N/A N/A images shape N/A 1 N/A N/A images shape N/A 2 N/A Img_output N/A N/A ImageActs stride stride gpu_hidacts gpu_filters N/A as_tensor_variable N/A N/A N/A images shape N/A 1 N/A N/A images shape N/A 2 N/A Img_output N/A host_from_gpu Img_output N/A f N/A function N/A Img_output N/A Img_output_val N/A f N/A N/A N/A warnings warn test_image_acts_strided success criterion is not very strict. N/A N/A N/A N/A N/A N/A np abs N/A Img_output_val Img_output_python max 2.1e-05 N/A N/A N/A N/A type Img_output_val N/A type Img_output_python N/A N/A N/A Img_output_val dtype N/A Img_output_python dtype N/A N/A N/A Img_output_val shape N/A Img_output_python shape N/A N/A N/A print cuda-convnet shape:  N/A Img_output_val shape N/A N/A print python conv shape:  N/A Img_output_python shape N/A False N/A err N/A N/A np abs N/A Img_output_val Img_output_python N/A N/A print N/A stride %d stride N/A N/A print absolute error range:  N/A N/A N/A err min N/A N/A err max N/A N/A print mean absolute error:  N/A N/A err mean N/A N/A print cuda-convnet value range:  N/A N/A N/A Img_output_val min N/A N/A Img_output_val max N/A N/A print python conv value range:  N/A N/A N/A Img_output_python min N/A N/A Img_output_python max N/A N/A N/A __name__ __main__ N/A N/A N/A test_image_acts_strided