diprism / fggs

Factor Graph Grammars in Python
MIT License
13 stars 3 forks source link

Use in-place operations to save memory in {RealSemiring,Semiring}.solve #172

Closed ccshan closed 10 months ago

ccshan commented 1 year ago

This makes it possible to parse string length 93 within 64GB of CPU memory. So it seems the most salient part of #145 when it comes to Newton's method.

Also, don't mask the out-of-memory exception thrown by torch.linalg.solve.