def handle_shared_float32(tf):
 if tf:
  theano.compile.shared_constructor(float32_shared_constructor)
 else:
  theano.compile.shared_constructor(float32_shared_constructor, True)
  assert (float32_shared_constructor not in theano.compile.shared.constructors)

def handle_shared_float32 ( tf ) : if tf : theano . compile . shared_constructor ( float32_shared_constructor ) else : theano . compile . shared_constructor ( float32_shared_constructor , True ) assert ( float32_shared_constructor not in theano . compile . shared . constructors )
set the default shared type for float32 tensor to cudandarraytype .