def test_shared_float32():
 theano.shared.constructors.append(cuda.shared_constructor)
 a = theano.shared(numpy.ones((2, 3), dtype='float32'))
 assert isinstance(a.type, tcn.CudaNdarrayType)
 del theano.shared.constructors[(-1)]

def test_shared_float32 ( ) : theano . shared . constructors . append ( cuda . shared_constructor ) a = theano . shared ( numpy . ones ( ( 2 , 3 ) , dtype = 'float32' ) ) assert isinstance ( a . type , tcn . CudaNdarrayType ) del theano . shared . constructors [ ( - 1 ) ]
test use of cuda .