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