Ejemplo n.º 1
0
 def test0(self):
     with open('test.pkl', 'wb') as f:
         m = theano.tensor.matrix()
         dest_pkl = 'my_test.pkl'
         f = open(dest_pkl, 'wb')
         strip_pickler = StripPickler(f, protocol=-1)
         strip_pickler.dump(m)
Ejemplo n.º 2
0
 def test0(self):
     with open('test.pkl', 'wb') as f:
         m = theano.tensor.matrix()
         dest_pkl = 'my_test.pkl'
         f = open(dest_pkl, 'wb')
         strip_pickler = StripPickler(f, protocol=-1)
         strip_pickler.dump(m)
Ejemplo n.º 3
0
 def test_basic(self):
     with open("test.pkl", "wb") as f:
         m = theano.tensor.matrix()
         dest_pkl = "my_test.pkl"
         f = open(dest_pkl, "wb")
         strip_pickler = StripPickler(f, protocol=-1)
         strip_pickler.dump(m)