def dnn_version():
 if (not dnn_available()):
  raise Exception("We can't determine the cudnn version as it is not available", dnn_available.msg)
 if (dnn_version.v is None):
  f = theano.function([], DnnVersion()(), theano.Mode(optimizer=None), profile=False)
  dnn_version.v = f()
 return dnn_version.v

def dnn_version ( ) : if ( not dnn_available ( ) ) : raise Exception ( "We can't determine the cudnn version as it is not available" , dnn_available . msg ) if ( dnn_version . v is None ) : f = theano . function ( [ ] , DnnVersion ( ) ( ) , theano . Mode ( optimizer = None ) , profile = False ) dnn_version . v = f ( ) return dnn_version . v
return the current cudnn version we compile with .