Exemple #1
0
 def dump(self, filename):
     file = PTI.fopen(bytes(filename, 'ascii'), b"w")
     PTI.ptiDumpSparseTensor(self.address, 1, file)
Exemple #2
0
 def dumpVec(self, fileName):
     file = PTI.fopen(bytes(fileName, 'ascii'), b"w")
     PTI.ptiDumpValueVector(self.address, file)
Exemple #3
0
 def dumpMatrix(self, filename):
     file = PTI.fopen(bytes(filename, 'ascii'), b'w')
     PTI.ptiDumpSparseMatrixCSR(self.address, file)
Exemple #4
0
 def dumpMatrix(self, filename):
     file = PTI.fopen(bytes(filename, 'ascii'), b"w")
     PTI.ptiDumpMatrix(self.address, file)
Exemple #5
0
 def loadMatrix(self, filename):
     file = PTI.fopen(bytes(filename, 'ascii'), b"r")
     PTI.ptiLoadSparseMatrix(self.address, 0, file)