<s> from __future__ import absolute_import , print_function , division <EOL> import sys , timeit , time <EOL> import numpy <EOL> import theano , theano . tensor . signal . conv <EOL> try : <EOL> img_shape = int ( sys . argv [ <NUM_LIT:1> ] ) , int ( sys . argv [ <NUM_LIT:2> ] ) <EOL> ker_shape = int ( sys . argv [ <NUM_LIT:3> ] ) , int ( sys . argv [ <NUM_LIT:4> ] ) <EOL> dtype = sys . argv [ <NUM_LIT:5> ] <EOL> except : <EOL> print ( "<STR_LIT>" % sys . argv [ <NUM_LIT:0> ] , file = sys . stderr ) <EOL> sys . exit ( - <NUM_LIT:1> ) <EOL> nb_call = <NUM_LIT:1> <EOL> if len ( sys . argv ) > <NUM_LIT:6> : <EOL> nb_call = int ( sys . argv [ <NUM_LIT:6> ] ) <EOL> setup = """<STR_LIT>""" <EOL> T = timeit . Timer ( "<STR_LIT>" , <EOL> setup + "<STR_LIT>" ) <EOL> time_without_shape = T . repeat ( repeat = <NUM_LIT:3> , number = nb_call ) <EOL> print ( min ( time_without_shape ) , '<STR_LIT>' ) <EOL> T = timeit . Timer ( "<STR_LIT>" , setup + """<STR_LIT>""" ) <EOL> time_with_shape = T . repeat ( repeat = <NUM_LIT:3> , number = nb_call ) <EOL> print ( min ( time_with_shape ) , '<STR_LIT>' ) </s>
