def function_dump(filename, inputs, outputs=None, mode=None, updates=None, givens=None, no_default_updates=False, accept_inplace=False, name=None, rebuild_strict=True, allow_input_downcast=None, profile=None, on_unused_input=None, extra_tag_to_remove=None):
 assert isinstance(filename, string_types)
 d = dict(inputs=inputs, outputs=outputs, mode=mode, updates=updates, givens=givens, no_default_updates=no_default_updates, accept_inplace=accept_inplace, name=name, rebuild_strict=rebuild_strict, allow_input_downcast=allow_input_downcast, profile=profile, on_unused_input=on_unused_input)
 with open(filename, 'wb') as f:
  import theano.misc.pkl_utils
  pickler = theano.misc.pkl_utils.StripPickler(f, protocol=(-1), extra_tag_to_remove=extra_tag_to_remove)
  pickler.dump(d)

def function_dump ( filename , inputs , outputs = None , mode = None , updates = None , givens = None , no_default_updates = False , accept_inplace = False , name = None , rebuild_strict = True , allow_input_downcast = None , profile = None , on_unused_input = None , extra_tag_to_remove = None ) : assert isinstance ( filename , string_types ) d = dict ( inputs = inputs , outputs = outputs , mode = mode , updates = updates , givens = givens , no_default_updates = no_default_updates , accept_inplace = accept_inplace , name = name , rebuild_strict = rebuild_strict , allow_input_downcast = allow_input_downcast , profile = profile , on_unused_input = on_unused_input ) with open ( filename , 'wb' ) as f : import theano . misc . pkl_utils pickler = theano . misc . pkl_utils . StripPickler ( f , protocol = ( - 1 ) , extra_tag_to_remove = extra_tag_to_remove ) pickler . dump ( d )
this is helpful to make a reproducible case for problems during theano compilation .